/* ===== GENERAL RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    color: #333;
    background: #f9f9f9;
    
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== NAVBAR ===== */
header {
    background: #0a0a23;
    padding: 18px 0;
    position:sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transform: translateZ(0);
}

.nav-container {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
}

.logo span {
    color: #ff6b9d;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s;
}

.hamburger:hover span {
    background: #ff6b9d;
}

/* ===== OVERLAY ===== */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    pointer-events: none;
}

.overlay.active {
    display: block;
    pointer-events:all;
    cursor:pointer;
}

/* ===== SIDE NAV ===== */
.side-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: #0a0a23;
    z-index: 300;
    transition: right 0.3s ease;
}

.side-nav.active {
    right: 0;
}

.side-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #1a1a3e;
    color: #fff;
    font-size: 18px;
}

.side-nav-header b {
    color: #ff6b9d;
}

.close-btn {
    cursor: pointer;
    color: #aaa;
    font-size: 20px;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #ff6b9d;
}

.side-nav ul {
    list-style: none;
    margin-top: 20px;
}

.side-nav ul li a {
    display: block;
    padding: 15px 25px;
    color: #aaa;
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid #1a1a3e;
    transition: all 0.3s;
}

.side-nav ul li a:hover {
    color: #ff6b9d;
    background: #1a1a3e;
    padding-left: 35px;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #0a0a23, #1a1a4e);
    color: #fff;
    text-align: center;
    padding: 120px 20px;
    position: relative;
    overflow: clip;
    z-index: 1;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }
}

.hero-content {
    position: relative;
    z-index: 0;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}




.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero h1 span {
    color: #ff6b9d;
}

.hero p {
    font-size: 15px;
    color: #aaa;
    margin-bottom: 40px;
}

.hero-btns {
    text-align: center;
    margin-top: 20px;
}

/* ===== BUTTON ===== */
.btn {
    display: inline-block;
    width: auto;
    background: #ff6b9d;
    color: #0a0a23;
    padding: 14px 36px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    transition: background 0.3s;
}
.hero-btn {
    background: #0a0a23;
    text-align: center;
    padding: 30px 20px;
}

.btn:hover {
    background: #e05585;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 118, 181, .4);
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 20px;
    text-align: center;
}

.section h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #0a0a23;
}

.section p.subtitle {
    color: #777;
    margin-bottom: 50px;
    font-size: 16px;
}

/* ===== SERVICES GRID ===== */
/* ===== SERVICES PAGE ANIMATED BACKGROUND ===== */
.services-section {
    position: relative;
    overflow: clip;
    background: #0a0a23;
}

.services-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.2) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    border-radius: 50%;

    z-index: 0;
}

.services-section::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(107, 107, 255, 0.15) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    border-radius: 50%;

    z-index: 0;
}

@keyframes float1{

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-50px, 50px) scale(1.2);
    }
}

@keyframes float2{

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, -50px) scale(1.1);
    }
}

.services-section h2 {
    color: #fff !important;
    position: relative;
    z-index: 1;
}

.services-section .subtitle {
    color: #aaa !important;
    position: relative;
    z-index: 1;
}

.services-section .services-grid {
    position: relative;
    z-index: 1;
}

/* Homepage service cards - white */
.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.service-card h3 {
    color: #0a0a23;
}

.service-card p {
    max-width:220px;
    line-height:1.8;
    font-size:18px;
    color: #777;
}

/* Services page cards - dark */
.services-section .service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 107, 157, 0.2);
    backdrop-filter: blur(10px);
    
}

.services-section .service-card h3 {
    color: #ff6b9d;
}

.services-section .service-card p {
    color: #ccc;
}

.service-card:hover {
    border-color: #ff6b9d;
    background: rgba(255, 107, 157, 0.1) !important;
    transform: translateY(-8px);
}


/* ===== CONTACT FORM ===== */
.contact-form {
    width: 90%;
    max-width: 600px;
    margin: auto;
    background: #fff;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
    padding: 14px;
    background: #ff6b9d;
    color: #0a0a23;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: #e05585;
}

/* ===== FOOTER ===== */
footer {
    background: #0a0a23;
    color: #777;
    text-align: center;
    padding: 30px;
    font-size: 14px;
}

/* ===== LANGUAGE TOGGLE ===== */
.english {
    display: block;
}

.persian {
    display: none;
}

.hero-btns .english {
    display: inline-block;
}

.hero-btns .persian {
    display: none;
}

body.persian-mode .english {
    display: none;
}

body.persian-mode .persian {
    display: block;
}

body.persian-mode .hero-btns .english {
    display: none;
}

body.persian-mode .hero-btns .persian {
    display: inline-block;
}

/* ===== STEPS LAYOUT ===== */
.steps-container {
    width: 80%;
    margin: auto;
    position: relative;
    z-index: 1;
}

.step-row {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 50px 0;
    border-bottom: 1px solid rgba(255, 107, 157, 0.15);
}

.step-row.reverse {
    flex-direction: row-reverse;
}

.step-number {
    min-width: 150px;
    text-align: center;
}

.step-number span {
    font-size: 100px;
    font-weight: 900;
    color: #ffe0eb !important;
    opacity: 0.8 !important;
    line-height: 1;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 28px;
    color: #ff6b9d !important;
    margin-bottom: 15px;
}

.step-content p {
    color: #ccc !important;
    font-size: 16px;
    line-height: 1.8;
}
#sakuraCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
@media (max-width: 768px) {
    .hero h1 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 13px;
    }
}
@media (max-width: 768px) {

    .steps-container {
        width: 92%;
    }

    .step-row,
    .step-row.reverse {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .step-number {
        min-width: auto;
    }

    .step-number span {
        font-size: 70px;
    }

    .step-content {
        width: 100%;
    }

    .step-content h3 {
        font-size: 24px;
    }

    .step-content p {
        font-size: 16px;
        line-height: 1.8;
    }

}
