/* Default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth theme transition */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.theme-transition,
body.theme-transition *,
body.theme-transition *::before,
body.theme-transition *::after {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Dark theme (default) */
body.dark-theme {
    font-family: sans-serif;
    background-color: #121212;
    color: #D4AF37;
}

/* Light theme */
body.light-theme {
    font-family: sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

body.light-theme #hero,
body.light-theme #contact-form {
    background-color: #f5f5f5;
}

body.light-theme #header-site,
body.light-theme #header-left h1,
body.light-theme #hero-text h1,
body.light-theme #hero-text h2,
body.light-theme #about h2,
body.light-theme #about p,
body.light-theme #slider-section h1,
body.light-theme #our-services h1,
body.light-theme #our-services h1 strong,
body.light-theme .boxs-os h2,
body.light-theme .boxs-os h4,
body.light-theme .htw-boxs h2,
body.light-theme .htw-boxs h4,
body.light-theme .slide-text h3,
body.light-theme #contact-form h1,
body.light-theme #cf-continer label,
body.light-theme .social-icons a {
    color: #8B5CF6; /* Purple accent for light theme */
}

body.light-theme .slider-container,
body.light-theme .boxs-os,
body.light-theme .htw-boxs {
    border-color: #8B5CF6;
}

body.light-theme .slide-text button,
body.light-theme .boxs-os button,
body.light-theme form button,
body.light-theme .nav button {
    background-color: #8B5CF6;
    color: #fff;
}

body.light-theme .boxs-os button a {
    color: #fff;
}

body.light-theme .htw-boxs span,
body.light-theme .nav button:hover {
    background-color: #6D28D9;
}

body.light-theme footer {
    background-color: #8B5CF6;
    color: #fff;
}

body.light-theme #cf-continer {
    background-color: #e5e5e5;
}

body.light-theme input,
body.light-theme select,
body.light-theme textarea {
    background-color: #fff;
    color: #333;
}

body.light-theme #header-site {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: #6D28D9 2px solid;
}

#header-left h1 {
    font-size: 24px;
    font-weight: bold;
    transition: 0.3s ease-in-out;
}
#header-left:hover{
    color: #fff;
}
#header-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

#header-right button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: #D4AF37;
    color: #121212;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
#header-right button i{
    transition: 0.4s ease-in-out;
}
body.light-theme #header-right button {
    background-color: #8B5CF6;
    color: #fff;
}
#header-right button:hover {
    background-color: #b08c2f;
    transform: translateX(-5px);
}

body.light-theme #header-right button:hover {
    color: #6D28D9;
}
body.light-theme #header-right #phone-btn a{
    color: #fff;
}
body.light-theme #header-right #phone-btn:hover a{
    color: #6D28D9;
}
@media (max-width: 768px) {
    #header-site {
        padding: 10px 15px;
    }

    #header-right {
        flex-direction: row;
        gap: 8px;
    }

    #header-right button {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    #header-left h1 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    #header-right button {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    #header-left h1 {
        font-size: 18px;
    }
}

/* Hero section */
#hero {
    width: 100%;
    height: 650px;
    background-color: #121212;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 10px 10px 10px;
    margin-top: 80px;
}

#hero-text {
    width: 800px;
    min-height: 300px;
    text-align: center;
}

#hero-text h1,
#hero-text h2,
#hero-text * {
    text-align: center;
}

#hero-text h1 {
    width: 100%;
    font-size: 48px;
    margin-bottom: 20px;
}

#hero-text h2 {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    #hero {
        height: auto;
        padding: 100px 10px 10px 10px;
    }

    #hero-text {
        width: 100%;
    }

    #hero-text h1 {
        font-size: 36px;
    }

    #hero-text h2 {
        font-size: 16px;
    }
}

/* About section */
#about {
    text-align: center;
    padding: 0 20px 20px;
}

#about h2 {
    margin-bottom: 50px;
}

#about .about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

#about .about-image {
    flex: 1;
    max-width: 500px;
}

#about .about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.light-theme #about .about-image img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#about .about-text {
    flex: 1;
    max-width: 500px;
}

#about p {
    font-size: 18px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    #about .about-content {
        flex-direction: column;
        gap: 20px;
    }

    #about .about-image,
    #about .about-text {
        max-width: 100%;
    }
}

/* Slider section */
#slider-section {
    width: 100%;
    height: auto;
    padding: 100px 10px 50px;
}

#slider-section h1 {
    text-align: center;
    margin-bottom: 50px;
}

.slider-container {
    position: relative;
    max-width: 90%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
}

body.light-theme .slider-container {
    background: linear-gradient(145deg, #e5e5e5, #ffffff);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
    border-radius: 20px;
}

body.light-theme .slide {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3));
}

.slide h1 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slide img {
    width: 100%;
    max-width: 700px;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease;
}

body.light-theme .slide img {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.slide img:hover {
    transform: scale(1.03);
}

.slide-text {
    max-width: 700px;
}

.slide-text h3 {
    font-size: 22px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.slide-text button {
    width: 150px;
    height: 50px;
    border-radius: 25px;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: #D4AF37;
    transition: 0.4s ease-in-out;
}

body.light-theme .slide-text button {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.slide-text button:hover {
    transform: translateY(-5px);
    border-radius: 15px;
    color: #fff;
}

.nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.nav button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: #D4AF37;
    transition: transform 0.3s ease-in-out;
}
.nav button i{
    transition: 0.3s ease-in-out;
}
body.light-theme .nav button {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav button:hover {
    transform: rotateZ(360deg);
    color: #fff;
}

@media (max-width: 768px) {
    .slider-container {
        max-width: 100%;
        border-radius: 0;
    }

    .slide {
        padding: 30px 20px;
    }

    .slide h1 {
        font-size: 28px;
    }

    .slide img {
        height: 280px;
        margin-bottom: 20px;
    }

    .slide-text h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .slide-text button {
        width: 130px;
        height: 45px;
        font-size: 14px;
    }

    .nav {
        padding: 0 10px;
    }

    .nav button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .slide {
        padding: 20px 10px;
    }

    .slide h1 {
        font-size: 24px;
    }

    .slide img {
        height: 220px;
    }

    .slide-text h3 {
        font-size: 16px;
    }

    .slide-text button {
        width: 120px;
        height: 40px;
        font-size: 13px;
    }

    .nav button {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Our services section */
#our-services {
    width: 100%;
    height: auto;
    padding: 100px 10px 50px;
}

#our-services h1 {
    text-align: center;
    margin-bottom: 50px;
}

#our-services h1 strong {
    color: #dab861;
}

#continer-os {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.boxs-os {
    width: 300px;
    height: 450px;
    border-radius: 10px;
    border: 2px solid #D4AF37;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    gap: 20px;
    flex-shrink: 0;
    transition: 0.3s ease-in-out;
}
.boxs-os:hover{
    transform: translateY(-5px);
    box-shadow: 0px 3px 10px #D4AF37;
}
.boxs-os img {
    width: 100%;
    height: 150px;
    background-color: #fff;
    border-radius: 10px;
}

.boxs-os h2 {
    color: #D4AF37;
}

.boxs-os h4 {
    color: #dab861;
}

.boxs-os button {
    width: 100px;
    height: 40px;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    background-color: #D4AF37;
    transition: 0.3s ease-in-out;
}
.boxs-os button:hover {
    transform: translateY(-5px);
    box-shadow: 0px 0px 5px #fff;
}
.boxs-os button a {
    color: #121212;
    text-decoration: none;
    transition: 0.3s ease-in-out;
}
.boxs-os button:hover a {
    color: #fff;
}
@media (max-width: 768px) {
    #continer-os {
        flex-direction: column;
    }
    .boxs-os {
        flex-grow: 1;
        gap: 40px;
    }
}

/* Work process section */
#htw {
    width: 100%;
    height: auto;
    padding: 100px 10px 50px;
}

#htw h1 {
    text-align: center;
    margin-bottom: 50px;
}
body.light-theme #htw h1{
    color: #6D28D9;
}
#htw-continer {
    width: 100%;
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.htw-boxs {
    width: 350px;
    height: 250px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 2px solid #D4AF37;
    border-radius: 10px;
    padding: 15px 10px 10px 10px;
    flex-shrink: 0;
    transition: 0.3s ease-in-out;
}
.htw-boxs:hover {
    transform: translateY(-5px);
    box-shadow: #D4AF37 0px 3px 10px;
}
.htw-boxs span {
    width: 40px;
    height: 40px;
    background-color: #b08c2f;
    border-radius: 10px;
    line-height: 40px;
    text-align: center;
    color: #121212;
    transition: 0.3s ease-in-out;
}
.htw-boxs span:hover {
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0px 0px 5px #fff;
}
body.light-theme .htw-boxs span{
    color: #f5f5f5;
}
.htw-boxs h2 {
    color: #dab861;
}

.htw-boxs h4 {
    color: #D4AF37;
}
@media (max-width: 768px){
    .htw-boxs{
        flex-grow: 1;
    }
}
/* Contact form section */
#contact-form {
    width: 100%;
    min-height: 100vh;
    padding: 100px 20px;
}

#contact-form h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.form-wrapper {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.social-icons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding-top: 20px;
}

.social-icons a {
    font-size: 28px;
    transition: transform 0.4s ease;
    color: #D4AF37;
}

.social-icons a:hover {
    transform: translateY(-5px);
    color: #fff;
}

#cf-continer {
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

form button {
    width: 150px;
    height: 50px;
    font-size: 18px;
    border-radius: 10px;
    border: none;
    background-color: #D4AF37;
    transition: 0.25s ease-in-out;
}
form button:hover{
    color: #fff;
    transform: translateY(-5px);
    box-shadow: #D4AF37 0px 3px 10px;
}
input[type="email"],
select,
textarea,
label[for="email"],
label[for="services"],
label[for="Message"] {
    grid-column: 1 / span 2;
}

label {
    font-weight: bold;
    margin-bottom: 4px;
    display: block;
}

input,
select,
textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    margin-bottom: 10px;
    box-sizing: border-box;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

@media (max-width: 768px) {
    .form-wrapper {
        grid-template-columns: 1fr;
    }

    .social-icons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 20px;
        padding-top: 0;
    }
    #cf-continer {
        padding: 20px;
    }

    form {
        grid-template-columns: 1fr;
    }

    label,
    input,
    select,
    textarea {
        grid-column: 1;
        width: 100%;
        max-width: 100%;
    }

    label {
        margin-bottom: 2px;
    }

    input,
    select,
    textarea {
        margin-bottom: 8px;
        padding: 12px;
    }

    #contact-form h1 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
}

/* Footer */
footer {
    width: 100%;
    height: 50px;
    line-height: 50px;
}

/* RTL styles for Persian */
html[dir="rtl"] body,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] p,
html[dir="rtl"] label,
html[dir="rtl"] a {
    text-align: right;
    font-family: 'Noto Serif', sans-serif;
}

html[dir="rtl"] h1:not(#hero-text h1):not(#header-left h1),
html[dir="rtl"] h2:not(#hero-text h2):not(#about h2) {
    text-align: center;
}

html[dir="rtl"] #cf-continer form {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

html[dir="rtl"] #cf-continer label {
    margin-left: 0;
    margin-right: 10px;
    text-align: right;
    width: 100%;
}

html[dir="rtl"] #cf-continer input,
html[dir="rtl"] #cf-continer textarea,
html[dir="rtl"] #cf-continer select {
    text-align: right;
}

html[dir="rtl"] #header-site {
    display: flex;
    justify-content: space-between;
}

html[dir="rtl"] #header-left {
    order: 2;
}

html[dir="rtl"] #header-right {
    order: 1;
}

.slider-container,
.slider-wrapper,
.nav {
    direction: ltr !important;
}

html[dir="rtl"] .nav {
    display: flex;
    flex-direction: row;
}

html[dir="rtl"] .about-content {
    display: flex;
    flex-direction: row-reverse;
}

html[dir="rtl"] .about-text {
    margin-right: 20px;
    margin-left: 0;
}

html[dir="rtl"] #continer-os {
    display: flex;
    flex-direction: row-reverse;
}

html[dir="rtl"] #htw-continer {
    display: flex;
    flex-direction: row-reverse;
}

html[dir="rtl"] footer p {
    text-align: center;
}

html[dir="rtl"] #about p {
    text-align: right;
}