/*
Theme Name: Mersasazepars Landing
Theme URI: http://example.com/mersasazepars
Author: مرسا سازه پارس
Author URI: http://example.com
Description: قالب وردپرس حرفه‌ای لندینگ پیج برای شرکت مرسا سازه پارس
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: mersasazepars
*/

/* General */
body {
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    direction: rtl;
    font-family: 'IRANSansWeb', sans-serif;
    scroll-behavior: smooth;
}
h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
}
section {
    padding: 60px 20px;
}


header {
    padding: 0px !important;
} 


/* Hero Section */
.hero-title {
    animation: fadeIn 2s ease-in-out;
    font-size: 3em;
}
.hero-subtitle {
    animation: fadeIn 3s ease-in-out;
    font-size: 1.5em;
}
.cta-button {
    background: linear-gradient(45deg, #00aaff, #004d99);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    display: inline-block;
    transition: transform 0.3s ease, background 0.3s ease;
}
.cta-button:hover {
    transform: scale(1.05);
    background: linear-gradient(45deg, #004d99, #00aaff);
}

/* Service Boxes */
.service-box {
    background: linear-gradient(135deg, #00aaff, #004d99);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin: 10px;
    width: 250px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0px 8px 20px rgba(0,0,0,0.2);
}

/* Counters */
.counter-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #004d99;
    color: white;
    padding: 20px;
    border-radius: 10px;
}
.counter-box h3 {
    font-size: 2.5em;
    margin: 0;
}
.counter-box p {
    font-size: 1em;
}

/* Tabs */
.tabs {
    max-width: 1200px;
    margin: auto;
}
.tab-buttons button {
    padding: 10px 20px;
    border: none;
    background: #eee;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
}
.tab-buttons button.active {
    background: #00aaff;
    color: white;
}
.tab-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
}
.timeline-step {
    background: #00aaff;
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin: 10px;
    width: calc(50% - 40px);
    text-align: center;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.gallery-item {
    background: #ccc;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}
.gallery-item:hover {
    transform: scale(1.05);
}

/* Why Us Section */
.why-box {
    background: #004d99;
    color: white;
    padding: 20px;
    border-radius: 10px;
    width: 250px;
    text-align: center;
    margin: 10px;
    transition: transform 0.3s ease;
}
.why-box:hover {
    transform: translateY(-10px);
}

/* Animations */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}
@keyframes bounce {
    0%, 100% {transform: translateY(0);}
    50% {transform: translateY(-10px);}
}
@keyframes iconFade {
    from { opacity: 0.5; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Icons Hover Effects */
.hero-title i {
    margin-left: 10px;
    color: #FFD700;
    animation: iconFade 2s infinite alternate;
}

/* Smooth hover effects for all boxes */
.service-box, .why-box, .project-card, .testimonial {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

/* Parallax Hero Background */
#hero {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Counter Animation */
.counter {
    font-size: 2em;
    font-weight: bold;
}

/* Site Header */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 77, 153, 0.95);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    z-index: 9999;
    transition: all 0.3s ease;
}
.main-menu ul {
    list-style: none;
    display: flex;
    gap: 25px;
}
.main-menu ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}
.main-menu ul li a:hover,
.main-menu ul li a.active {
    color: #FFD700;
}
#site-header.scrolled {
    padding: 5px 50px;
    background: rgba(0, 77, 153, 1);
}
#site-header .logo {
    display: flex
;
    align-items: center;
    padding: 5px 10px;
    transition: all 0.3s 
ease;
    margin-right: 50px;
background: white;
}
#site-header .logo img {
    height: 80px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#site-header .logo img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}
#site-header.scrolled .logo img {
    height: 60px;
}

/* Responsive Header & Layout */
@media screen and (max-width: 768px) {
    #site-header {
        flex-direction: column;
        padding: 10px 20px;
    }
    #site-header .logo img {
        height: 50px;
    }
    .main-menu ul {
        flex-direction: column;
        gap: 10px;
    }
}





/* Hamburger styles */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  width: 30px;
  height: 25px;
  gap: 6px;
  z-index: 10000;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* انیمیشن همبرگر */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* حالت دسکتاپ */
.main-menu ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

/* حالت موبایل */
@media (max-width: 991px) {
  .hamburger {
    display: flex;
  }
  .main-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: rgba(0, 77, 153, 0.98);
    padding: 30px 20px;
    transition: right 0.4s ease;
  }
  .main-menu ul {
    flex-direction: column;
    gap: 20px;
  }
  .main-menu ul li a {
    color: #fff;
    font-size: 18px;
    text-decoration: none;
  }
  .main-menu.active {
    right: 0;
  }
}
