/* ============================================
   DEMO 2 - PRIMEBUILD STYLE
   ============================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #F6C744;
    --primary-dark: #D99A25;
    --primary-light: #FFF5D6;
    --dark: #06142E;
    --dark-2: #0B2343;
    --dark-3: #17253F;
    --text: #263246;
    --text-light: #667085;
    --text-muted: #8993A4;
    --white: #ffffff;
    --bg-light: #F5F7FC;
    --bg-blue: #EEF2F8;
    --border: #DCE3EE;
    --shadow: 0 12px 34px rgba(6, 20, 46, .09);
    --shadow-lg: 0 22px 55px rgba(6, 20, 46, .16);
    --radius: 18px;
    --radius-sm: 10px;
    --transition: all 0.3s ease;
    --font: 'Vazirmatn', sans-serif;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.8;
    background: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(245, 166, 35, 0.4);
}

.btn-dark {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

.btn-dark:hover {
    background: var(--dark-2);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(10, 22, 40, 0.3);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* ===== TOPBAR ===== */
.topbar {
    background: var(--dark);
    color: var(--white);
    padding: 12px 0;
    font-size: 0.88rem;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.topbar-info {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.topbar-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
}

.topbar-info i {
    color: var(--primary);
}

.topbar-social {
    display: flex;
    gap: 12px;
}

.topbar-social a {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.topbar-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.12);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text strong {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--dark);
    line-height: 1;
}

.logo-text span {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.logo-text small {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--dark);
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a i {
    font-size: 0.7rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    background: url('../images/top-civil-engineering-firms-f.avif') center/cover no-repeat;
    padding: 100px 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.92) 0%, rgba(10, 22, 40, 0.75) 50%, rgba(10, 22, 40, 0.6) 100%);
}

.hero-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    align-items: center;
}

.hero-subtitle {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.subtitle-line {
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.hero-subtitle span {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero h1 .highlight {
    color: var(--primary);
    position: relative;
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.9;
    margin-bottom: 35px;
    max-width: 550px;
}

/* Hero Features */
.hero-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-feature {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: var(--transition);
}

.hero-feature:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateX(-10px);
}

.feature-icon {
    width: 55px;
    height: 55px;
    min-width: 55px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--white);
    transition: var(--transition);
}

.hero-feature:hover .feature-icon {
    background: var(--white);
    color: var(--primary);
}

.feature-text strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 3px;
}

.feature-text span {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-feature:hover .feature-text span {
    color: rgba(255, 255, 255, 0.95);
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 100px 0;
    background: var(--white);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-images {
    position: relative;
}

.about-label {
    position: absolute;
    top: 50%;
    right: -30px;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: right center;
    font-size: 4rem;
    font-weight: 900;
    color: var(--bg-light);
    letter-spacing: 5px;
    white-space: nowrap;
    z-index: 0;
}

.about-img-main {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.about-img-main img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-img-main:hover img {
    transform: scale(1.05);
}

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 220px;
    height: 220px;
    border-radius: 20px;
    overflow: hidden;
    border: 8px solid var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--dark);
    color: var(--white);
    padding: 20px 25px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 3;
    box-shadow: var(--shadow-lg);
}

.about-badge i {
    font-size: 2rem;
    color: var(--primary);
}

.about-badge strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
}

.about-badge span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* About Content */
.about-content .section-subtitle {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.about-content .section-subtitle span:last-child {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.about-content h2 {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 20px;
}

.about-content > p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 35px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 35px;
}

.about-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.about-feature-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    transition: var(--transition);
}

.about-feature:hover .about-feature-icon {
    transform: rotate(360deg) scale(1.1);
}

.about-feature-text h4 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 5px;
}

.about-feature-text p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== STATS SECTION ===== */
.stats-section {
    padding: 100px 0;
    background: var(--bg-blue);
    position: relative;
    overflow: hidden;
}

.stats-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.stats-content .section-subtitle {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.stats-content .section-subtitle span:last-child {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.stats-content h2 {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 40px;
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 25px;
    background: var(--white);
    padding: 25px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-right: 5px solid var(--primary);
}

.stat-item:hover {
    transform: translateX(-10px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    background: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    transition: var(--transition);
}

.stat-item:hover .stat-icon {
    background: var(--primary);
    color: var(--white);
    transform: rotate(360deg);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--dark);
    line-height: 1;
}

.stat-number::after {
    content: '+';
    color: var(--primary);
    margin-right: 5px;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 5px;
    font-weight: 600;
}

.stats-image {
    position: relative;
}

.stats-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.stats-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(245, 166, 35, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 100px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.section-header .section-subtitle span:last-child {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--dark);
    line-height: 1.3;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-icon {
    position: absolute;
    bottom: -30px;
    right: 25px;
    width: 65px;
    height: 65px;
    background: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    box-shadow: 0 8px 20px rgba(245, 166, 35, 0.4);
    transition: var(--transition);
    z-index: 2;
}

.service-card:hover .service-icon {
    transform: rotate(360deg) scale(1.1);
    background: var(--dark);
}

.service-arrow {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
    opacity: 0;
    transform: translateX(20px);
}

.service-card:hover .service-arrow {
    opacity: 1;
    transform: translateX(0);
}

.service-arrow:hover {
    background: var(--dark);
}

.service-content {
    padding: 40px 25px 30px;
}

.service-content h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.service-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 80px 0;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 40px;
    align-items: center;
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.cta-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
}

.cta-text h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1.3;
}

.cta-text h2 span {
    color: var(--primary);
}

.cta-info p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    max-width: 400px;
}

.cta-actions {
    display: flex;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
    border-top: 3px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 50px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.footer-logo .logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo .logo-text strong {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
}

.footer-logo .logo-text span {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.9;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links li i {
    color: var(--primary);
    font-size: 0.85rem;
    width: 16px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links li a:hover {
    color: var(--primary);
    padding-right: 5px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 0;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-features {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .hero-feature {
        flex: 1;
        min-width: 250px;
    }

    .about-wrapper,
    .stats-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-label {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .cta-content {
        justify-content: center;
    }

    .cta-info p {
        max-width: 100%;
    }

    .cta-actions {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .topbar-info {
        gap: 15px;
    }

    .topbar-info span {
        font-size: 0.8rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 20px;
        transition: var(--transition);
        z-index: 999;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .nav-actions .btn {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-features {
        flex-direction: column;
    }

    .about-content h2,
    .stats-content h2,
    .section-header h2 {
        font-size: 2rem;
    }

    .about-img-secondary {
        width: 150px;
        height: 150px;
        bottom: -20px;
        left: -20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .cta-text h2 {
        font-size: 1.6rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .topbar {
        display: none;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .about-badge {
        position: static;
        margin-top: 20px;
    }

    .stats-badge {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        bottom: -20px;
        right: -20px;
    }

    .stat-item {
        padding: 20px;
    }

    .stat-icon {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* =========================================================
   DEMO 02 — SAZEH SAZAN BRAND REDESIGN
   Deep navy / engineering blue / warm gold
========================================================= */
body[data-demo="2"] {
    color: #263246;
    background: #F5F7FC;
    font-family: 'Vazirmatn', sans-serif;
}

body[data-demo="2"] .topbar {
    color: rgba(255,255,255,.82);
    background: #020B1C;
    border-bottom: 1px solid rgba(246,199,68,.16);
}

body[data-demo="2"] .topbar-info i,
body[data-demo="2"] .topbar-social a:hover {
    color: #F6C744;
}

body[data-demo="2"] .header {
    background: rgba(6,20,46,.97);
    border-bottom: 1px solid rgba(246,199,68,.2);
    box-shadow: 0 10px 30px rgba(2,11,28,.18);
    backdrop-filter: blur(14px);
}

body[data-demo="2"] .logo,
body[data-demo="2"] .nav-links a,
body[data-demo="2"] .stage5-dropdown-toggle,
body[data-demo="2"] .hamburger {
    color: #fff;
}

body[data-demo="2"] .logo-icon {
    color: #06142E;
    background: linear-gradient(145deg,#FFE28A,#F6C744 60%,#D99A25);
    box-shadow: 0 6px 18px rgba(246,199,68,.2);
}

body[data-demo="2"] .logo-text strong,
body[data-demo="2"] .logo-text span {
    color: #fff;
}

body[data-demo="2"] .logo-text small {
    color: rgba(255,255,255,.62);
}

body[data-demo="2"] .nav-links a:hover,
body[data-demo="2"] .nav-links a.active,
body[data-demo="2"] .stage5-dropdown-toggle:hover {
    color: #F6C744;
}

body[data-demo="2"] .nav-links a::after {
    background: #F6C744;
}

body[data-demo="2"] .stage5-dropdown-menu {
    background: #071A35;
    border: 1px solid rgba(246,199,68,.25);
    box-shadow: 0 18px 45px rgba(2,11,28,.3);
}

body[data-demo="2"] .stage5-dropdown-menu a {
    color: rgba(255,255,255,.86);
}

body[data-demo="2"] .stage5-dropdown-menu a:hover {
    color: #06142E;
    background: #F6C744;
}

body[data-demo="2"] .hero {
    min-height: 690px;
    background-position: center;
}

body[data-demo="2"] .hero-overlay {
    background:
        radial-gradient(circle at 78% 18%, rgba(246,199,68,.13), transparent 28%),
        linear-gradient(110deg, rgba(2,11,28,.96), rgba(6,20,46,.86) 58%, rgba(11,43,86,.7));
}

body[data-demo="2"] .hero h1,
body[data-demo="2"] .hero-content h1 {
    color: #fff;
    text-shadow: 0 8px 28px rgba(0,0,0,.25);
}

body[data-demo="2"] .hero h1 .highlight,
body[data-demo="2"] .hero .highlight,
body[data-demo="2"] .hero-subtitle,
body[data-demo="2"] .hero-feature .feature-icon {
    color: #F6C744;
}

body[data-demo="2"] .hero-content > p,
body[data-demo="2"] .hero-feature .feature-text span {
    color: rgba(255,255,255,.78);
}

body[data-demo="2"] .hero-feature {
    border-color: rgba(246,199,68,.2);
    background: rgba(255,255,255,.055);
    backdrop-filter: blur(10px);
}

body[data-demo="2"] .btn-primary {
    color: #06142E;
    background: linear-gradient(135deg,#FFE28A,#F6C744 58%,#D99A25);
    border-color: #F6C744;
    box-shadow: 0 10px 28px rgba(217,154,37,.22);
}

body[data-demo="2"] .btn-primary:hover {
    color: #06142E;
    background: #E9AE32;
    border-color: #E9AE32;
}

body[data-demo="2"] .btn-dark {
    color: #fff;
    background: #06142E;
    border-color: #06142E;
}

body[data-demo="2"] .btn-dark:hover {
    color: #06142E;
    background: #F6C744;
    border-color: #F6C744;
}

body[data-demo="2"] .about,
body[data-demo="2"] .services {
    background: #fff;
}

body[data-demo="2"] .about,
body[data-demo="2"] .stats-section,
body[data-demo="2"] .services,
body[data-demo="2"] .template-pages-section {
    position: relative;
}

body[data-demo="2"] .about {
    padding: 112px 0;
}

body[data-demo="2"] .about-images {
    filter: drop-shadow(0 20px 34px rgba(6,20,46,.12));
}

body[data-demo="2"] .about-label {
    color: #06142E;
    background: #F6C744;
    box-shadow: 0 10px 25px rgba(217,154,37,.22);
}

body[data-demo="2"] .about-badge {
    background: linear-gradient(145deg,#06142E,#0B2B56);
    border: 1px solid rgba(246,199,68,.35);
    box-shadow: 0 18px 40px rgba(6,20,46,.22);
}

body[data-demo="2"] .about-badge i {
    color: #F6C744;
}

body[data-demo="2"] .about-content h2,
body[data-demo="2"] .section-header h2 {
    color: #06142E;
}

body[data-demo="2"] .section-subtitle,
body[data-demo="2"] .section-subtitle span:last-child {
    color: #B47A13;
}

body[data-demo="2"] .subtitle-line {
    background: #F6C744;
}

body[data-demo="2"] .about-feature-icon,
body[data-demo="2"] .service-icon {
    color: #06142E;
    background: linear-gradient(145deg,#FFE28A,#F6C744);
    box-shadow: 0 8px 20px rgba(217,154,37,.18);
}

body[data-demo="2"] .about-feature:hover .about-feature-icon {
    color: #F6C744;
    background: #06142E;
}

body[data-demo="2"] .stats-section {
    padding: 110px 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 85%, rgba(246,199,68,.10), transparent 26%),
        radial-gradient(circle at 92% 10%, rgba(41,94,150,.22), transparent 28%),
        linear-gradient(135deg,#020B1C 0%,#06142E 55%,#0B2B56 100%);
}

body[data-demo="2"] .stats-section::before,
body[data-demo="2"] .stats-section::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(246,199,68,.09);
    border-radius: 50%;
    pointer-events: none;
}

body[data-demo="2"] .stats-section::before {
    top: -210px;
    right: -90px;
    box-shadow: 0 0 0 28px rgba(246,199,68,.025),0 0 0 58px rgba(246,199,68,.018);
}

body[data-demo="2"] .stats-section::after {
    bottom: -245px;
    left: -100px;
}

body[data-demo="2"] .stats-wrapper {
    position: relative;
    z-index: 1;
    gap: 65px;
}

body[data-demo="2"] .stats-content .section-subtitle span:last-child {
    color: #F6C744;
}

body[data-demo="2"] .stats-content h2 {
    color: #fff;
    font-size: clamp(2rem,3.3vw,2.8rem);
    margin-bottom: 32px;
}

body[data-demo="2"] .stats-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 14px;
}

body[data-demo="2"] .stat-item {
    min-width: 0;
    min-height: 190px;
    padding: 23px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 17px;
    color: #fff;
    background: linear-gradient(150deg,rgba(255,255,255,.105),rgba(255,255,255,.035));
    border: 1px solid rgba(255,255,255,.12);
    border-right: 3px solid #F6C744;
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06),0 16px 34px rgba(0,0,0,.12);
    transition: transform .3s ease,border-color .3s ease,background .3s ease;
}

body[data-demo="2"] .stat-item:hover {
    transform: translateY(-7px);
    border-color: rgba(246,199,68,.55);
    background: linear-gradient(150deg,rgba(246,199,68,.13),rgba(255,255,255,.055));
}

body[data-demo="2"] .stat-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #F6C744;
    font-size: 1.2rem;
    background: rgba(246,199,68,.12);
    border: 1px solid rgba(246,199,68,.27);
    border-radius: 14px;
}

body[data-demo="2"] .stat-item:hover .stat-icon {
    color: #06142E;
    background: #F6C744;
    transform: translateY(-2px);
}

body[data-demo="2"] .stat-info {
    gap: 8px;
}

body[data-demo="2"] .stat-value {
    display: inline-flex;
    direction: ltr;
    align-items: baseline;
    gap: 4px;
    line-height: 1;
}

body[data-demo="2"] .stat-number {
    color: #F6C744;
    font-size: clamp(2.15rem,3vw,2.8rem);
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

body[data-demo="2"] .stat-number::after {
    content: none !important;
    display: none !important;
}

body[data-demo="2"] .stat-suffix {
    display: inline-block;
    color: #F6C744;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
    transform: translateY(-.12em);
}

body[data-demo="2"] .stat-label {
    color: rgba(255,255,255,.76);
    font-size: .84rem;
    font-weight: 600;
    line-height: 1.8;
}

body[data-demo="2"] .stats-image {
    position: relative;
}

body[data-demo="2"] .stats-image img {
    height: 490px;
    border: 1px solid rgba(246,199,68,.32);
    border-radius: 24px;
    box-shadow: 0 28px 65px rgba(0,0,0,.28);
}

body[data-demo="2"] .stats-badge {
    width: 86px;
    height: 86px;
    right: -22px;
    bottom: -22px;
    color: #06142E;
    background: linear-gradient(145deg,#FFE28A,#F6C744,#D99A25);
    border: 5px solid #06142E;
    box-shadow: 0 12px 32px rgba(217,154,37,.28);
}

body[data-demo="2"] .services {
    padding: 110px 0;
    background: #F5F7FC;
}

body[data-demo="2"] .section-header {
    margin-bottom: 48px;
}

body[data-demo="2"] .service-card {
    overflow: hidden;
    border: 1px solid #DCE3EE;
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(6,20,46,.07);
}

body[data-demo="2"] .service-card:hover {
    transform: translateY(-9px);
    border-color: rgba(246,199,68,.7);
    box-shadow: 0 24px 48px rgba(6,20,46,.13);
}

body[data-demo="2"] .service-image {
    overflow: hidden;
}

body[data-demo="2"] .service-image img {
    transition: transform .65s cubic-bezier(.2,.7,.2,1);
}

body[data-demo="2"] .service-card:hover .service-image img {
    transform: scale(1.07);
}

body[data-demo="2"] .service-content h3 {
    color: #06142E;
}

body[data-demo="2"] .service-arrow {
    color: #06142E;
    background: #F6C744;
}

body[data-demo="2"] .service-arrow:hover {
    color: #F6C744;
    background: #06142E;
}

/* A visible directory linking Demo 02 to the main template pages */
body[data-demo="2"] .template-pages-section {
    padding: 105px 0 112px;
    background: linear-gradient(180deg,#fff 0%,#F5F7FC 100%);
}

body[data-demo="2"] .template-pages-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 38px;
}

body[data-demo="2"] .template-pages-heading h2 {
    margin: 12px 0 10px;
    color: #06142E;
    font-size: clamp(1.65rem,3vw,2.35rem);
    font-weight: 900;
    line-height: 1.5;
}

body[data-demo="2"] .template-pages-heading p {
    max-width: 700px;
    color: #667085;
    font-size: .96rem;
    line-height: 2;
}

body[data-demo="2"] .template-pages-all {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    color: #06142E;
    background: #FFF5D6;
    border: 1px solid rgba(217,154,37,.32);
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 800;
}

body[data-demo="2"] .template-pages-all:hover {
    background: #F6C744;
    transform: translateY(-3px);
}

body[data-demo="2"] .template-pages-grid {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 14px;
}

body[data-demo="2"] .template-page-card {
    position: relative;
    min-width: 0;
    min-height: 142px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 20px 16px;
    color: #263246;
    background: #fff;
    border: 1px solid #DCE3EE;
    border-radius: 17px;
    box-shadow: 0 8px 22px rgba(6,20,46,.045);
    transition: transform .28s ease,border-color .28s ease,box-shadow .28s ease;
}

body[data-demo="2"] .template-page-card:hover {
    color: #06142E;
    transform: translateY(-6px);
    border-color: #F6C744;
    box-shadow: 0 18px 36px rgba(6,20,46,.11);
}

body[data-demo="2"] .template-page-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #06142E;
    background: linear-gradient(145deg,#FFE28A,#F6C744);
    border-radius: 13px;
    font-size: 1.1rem;
}

body[data-demo="2"] .template-page-card strong,
body[data-demo="2"] .template-page-card small {
    display: block;
}

body[data-demo="2"] .template-page-card strong {
    color: #06142E;
    font-size: .9rem;
    font-weight: 900;
    margin-bottom: 5px;
}

body[data-demo="2"] .template-page-card small {
    color: #7A8495;
    font-size: .72rem;
    line-height: 1.7;
}

body[data-demo="2"] .page-card-arrow {
    margin-right: auto;
    color: #C28B1B;
    font-size: .8rem;
    transition: transform .25s ease;
}

body[data-demo="2"] .template-page-card:hover .page-card-arrow {
    transform: translateX(-4px);
}

body[data-demo="2"] .cta-section {
    padding: 80px 0;
    background:
        radial-gradient(circle at 10% 90%,rgba(246,199,68,.13),transparent 28%),
        linear-gradient(120deg,#020B1C,#06142E 62%,#0B2B56);
}

body[data-demo="2"] .cta-wrapper {
    border: 1px solid rgba(246,199,68,.25);
    border-radius: 24px;
}

body[data-demo="2"] .cta-icon {
    color: #06142E;
    background: #F6C744;
}

body[data-demo="2"] .cta-text h2,
body[data-demo="2"] .cta-info p {
    color: #fff;
}

body[data-demo="2"] .footer {
    color: rgba(255,255,255,.76);
    background: #020B1C;
    border-top: 1px solid rgba(246,199,68,.2);
}

body[data-demo="2"] .footer-col h4,
body[data-demo="2"] .footer-logo,
body[data-demo="2"] .footer-bottom {
    color: #fff;
}

body[data-demo="2"] .footer-col h4::after {
    background: #F6C744;
}

body[data-demo="2"] .footer-links a:hover,
body[data-demo="2"] .footer-social a:hover,
body[data-demo="2"] .footer-bottom-links a:hover {
    color: #F6C744;
}

body[data-demo="2"] .back-to-top {
    color: #06142E;
    background: #F6C744;
    box-shadow: 0 8px 22px rgba(217,154,37,.25);
}

@media (max-width: 1100px) {
    body[data-demo="2"] .template-pages-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
    body[data-demo="2"] .stats-wrapper {
        gap: 38px;
    }
    body[data-demo="2"] .stats-grid {
        gap: 10px;
    }
    body[data-demo="2"] .stat-item {
        padding: 19px 13px;
    }
}

@media (max-width: 820px) {
    body[data-demo="2"] .stats-wrapper {
        grid-template-columns: 1fr;
    }
    body[data-demo="2"] .stats-image {
        max-width: 620px;
        margin: 12px auto 0;
    }
    body[data-demo="2"] .template-pages-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    body[data-demo="2"] .template-pages-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 600px) {
    body[data-demo="2"] .hero {
        min-height: 620px;
    }
    body[data-demo="2"] .about,
    body[data-demo="2"] .services,
    body[data-demo="2"] .template-pages-section {
        padding: 70px 0;
    }
    body[data-demo="2"] .stats-section {
        padding: 76px 0;
    }
    body[data-demo="2"] .stats-grid {
        grid-template-columns: 1fr;
    }
    body[data-demo="2"] .stat-item {
        min-height: 130px;
        flex-direction: row;
        align-items: center;
        padding: 20px;
    }
    body[data-demo="2"] .stat-info {
        align-items: flex-start;
    }
    body[data-demo="2"] .stats-image img {
        height: 330px;
    }
    body[data-demo="2"] .template-pages-grid {
        grid-template-columns: 1fr;
    }
    body[data-demo="2"] .template-page-card {
        min-height: 105px;
    }
    body[data-demo="2"] .template-pages-all {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    body[data-demo="2"] *,
    body[data-demo="2"] *::before,
    body[data-demo="2"] *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
