/*
 Theme Name: copybynick
 Theme URI: https://copybynick.com
 Author: Salva
 Description: A modern and versatile WordPress theme designed for personal blogs, portfolios, and creative projects.
 tags: blog, portfolio, creative, modern, responsive, personal, minimal, customizable, clean, professional, elegant, photography, freelancer, one-page, business, multipurpose, lightweight, fast, SEO-friendly, user-friendly

 Version: 1.0
*/


/* Reset CSS */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, dialog, figure, footer, header, hgroup, main, nav, section, summary {
    display: block;
}

blockquote, q {
    quotes: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

ul {
    list-style-position: inside;

}

.p-bold {
    font-weight: 600;
}

.f-bold {
    font-weight: 800;
}

a {
    text-decoration: none;
}

/*-------------- stick footer bottom ---------*/
html, body {
    height: 100%;
    margin: 0;
}

.page-wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/*---------------- color ------------*/
:root {
    --blue-color: #0b93ff;
    --orang-color: #e7c100;
    --light-orang-color: #ffe979;
    --White: #ffffff;
    --black: #000000;
}

/*------------------header-----------------*/
body {
    font-family: Helvetica, Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    font-size: 16px;
    scroll-behavior: smooth;
}

.container {

    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
}

.nav-button-warp, .main-menu {
    margin-top: 10px;

}

.nav-button-warp ul, .logo ul {
    display: flex;
    list-style: none;
}

.nav-button-warp ul li a {
    padding: 0 15px;
    color: var(--black);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
}

.nav-button-warp .tel {
    color: var(--blue-color);
    margin-top: 6px;
}

.logo img {
    max-width: 180px;
    height: auto;
}



/*-------------- main menu------------*/

.main-menu ul {
    list-style: none;
    display: flex;
}

.main-menu ul li {
    position: relative;
}

.main-menu ul li a {
    display: block;
    color: var(--black);
    text-decoration: none;
    padding: 10px 18px;
    font-family: sans-serif;
    font-size: 1rem;
    transition: background 0.3s ease;
    font-weight: 600;
}

.main-menu ul li:hover {
    background: #eeeeee;
    border-radius: 5px;
}

/*--------------- sub menu ----------*/
.main-menu ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--White);
    flex-direction: column;
    min-width: 150px;
    border-radius: 5px;
    z-index: 999;
}

.main-menu ul li ul li {
    border-bottom: 1px #010101 dashed;
}

.main-menu ul li ul li a {
    border-radius: 5px;
    white-space: nowrap;
}

/* sum menu hover */
.main-menu ul li:hover > ul {
    display: flex;
}

.main-menu ul li ul li a:hover {
    background-color: #ddd;
    color: var(--black);
}

.main-menu ul li ul li:last-child {
    border-bottom: none;
}

/*--------------- btn effect ------------*/
button {
    padding: 20px 70px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.contact-btn {
    position: relative;
    display: inline-block;
    background: var(--black);
    color: var(--White);
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    overflow: hidden;
}

.contact-btn .text {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    line-height: 2.5;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.contact-btn .default {
    top: 0;
    transform: translateY(0);
    opacity: 1;
}

.contact-btn .hover-text {
    top: 100%;
    opacity: 0;
}

.contact-btn:hover .default {
    transform: translateY(-100%);
    opacity: 0;
}

.contact-btn:hover .hover-text {
    transform: translateY(-100%);
    opacity: 1;
}

/*---------- header bottom ---------*/
.open-btn {
    padding: 10px 20px;
    background-color: var(--blue-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* ------------ modal box --------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    padding: 25px 40px 25px 20px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10000;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.4s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0);
    opacity: 1;
}

.modal h2 {
    margin-bottom: 15px;
    font-size: 22px;
    color: #222;
}

.modal input, .modal textarea {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
    resize: none;
    transition: border-color 0.3s ease;
}

.modal input:focus, .modal textarea:focus {
    border-color: #0078ff;
    outline: none;
}

.close-btn {
    background: var(--blue-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: var(--orang-color);
}


/*--------------- Hero Section ---------------*/

.bg-hero {
    position: relative;
    background: url("nike.jpg") center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 50px 20px;
}

.bg-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.bg-hero .hero-container {
    position: relative;
    z-index: 1;
    text-align: left;
}

.hero-container {
    display: flex;
    padding: 30px 10px;
    justify-content: center;
    align-items: center;
}

.info-side h3 {
    font-size: 30px;
    font-weight: 700;
    margin: 10px 0;
    letter-spacing: 1px;
}

.info-side h1 {
    font-size: 75px;
    letter-spacing: 1px;
    font-weight: 700;
}

.info-side h3 span {
    color: var(--blue-color);
}

.info-side p {
    width: 60%;
    line-height: 34px;
    margin: 20px 0px 40px 0;
    font-size: 18px;
}

.hero-img {
    width: 450px;
}

.hero-img img {
    width: 450px;
    border-radius: 50%;
}

.hero-container .info-side p a {
    text-decoration: none;
    color: var(--orang-color);
    font-weight: 600;
}

/* --- Typewriter Effect for "copywriter" hero section --- */
#typewriter {
    display: inline-block;
    font-weight: bold;
    color: #0b93ff;
    font-family: "Courier New", monospace;
}

.cursor {
    display: inline-block;
    font-weight: bold;
    font-size: 1.2em;
    color: #0b93ff;
    margin-left: 3px;
    animation: blink 0.8s infinite;
}

/* Typewriter Blinking cursor */
@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/*--------------social-link -----------*/


.social-links ul {
    display: flex;
    list-style: none;
}

.social-links ul li {
    padding: 1.5rem 0.5rem;
}

.social-links ul li a {
    color: var(--White);
    font-size: 20px;
    text-decoration: underline;
    text-underline-offset: 7px;
}

.social-links ul li i {
    font-size: 20px;
    color: var(--White);
    position: relative;
    background: var(--blue-color);
    border-radius: 5px;
    padding: 6px;
    margin: 0px 8px;
    transition: 0.3s;
}

.social-links ul li i:hover {
    color: var(--black);
    background-color: var(--White);
}

/* -------------- BUTTONS hero ------------ */

.btn {
    display: inline-block;
    padding: 12px 20px;
    background-color: var(--White);
    color: var(--black);
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
}

.hero-container a i {
    display: inline-block;
    opacity: 1;
    transition: opacity 0.1s ease;
}

.hero-container .cta-row a:hover i {
    opacity: 0;
    animation: flashMove 0.7s ease forwards;
}

@keyframes flashMove {
    0% {
        opacity: 0;
        transform: translateX(0);
    }
    20% {
        opacity: 1; /* دوباره ظاهر شود */
        transform: translateX(0);
    }
    60% {
        transform: translateX(7px); /* حرکت به راست */
    }
    100% {
        transform: translateX(0); /* برگشت */
        opacity: 1; /* کاملاً نمایش داده شود */
    }
}

/* ---------------service------------- */
.all-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 10px 0 50px;
}

.all-services article {
    padding: 10px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
    border-radius: 5px;
}

.all-services i {
    color: var(--orang-color);
    font-size: 20px;
}

.service-title {
    font-weight: 600;
    padding: 10px;
    border-bottom: 1px solid var(--black);
}

.service-title h4 {
    font-size: 18px;
}

.service {
    padding: 10px;
    border: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.skill > p {
    padding: 10px 50px;
    text-align: center;
}

.service .btn-skill {
    display: inline-block;
    font-weight: 500;
    margin-left: 10px;
}

.service-btn {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    display: inline-block;
    padding-bottom: 20px;
}

.service p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 10px 0;
    padding: 0 10px;
}

.btn-skill a {
    color: var(--black);
    background-color: #ccc;
    padding: 4px 8px;
    border-radius: 5px;
    font-weight: 600;
}

.btn-skill a:hover {
    background: #444;
    color: var(--White);
    transition: 0.1s ease;
}

/*-------------------shine Effect--------------*/
.shine-btn {
    position: relative;
    padding: 12px 25px;
    font-size: 16px;
    color: white;
    background: var(--black);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
}

.shine-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    transform: skewX(-25deg);
}

.shine-btn:hover::before {
    animation: shine 0.7s forwards;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 150%;
    }
}

/* --------------- CTA BAND ------------- */
.wrap {
    margin: 50px;
}

.wrap h2 {
    font-size: 35px;
    margin-bottom: 14px;
    font-weight: 800;
    text-align: center;
}

/* CTA Band */

.cta-band {
    position: relative;
    height: auto;
    background-image: url("logo/bg-1.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 5px;
    background-color: var(--light-orang-color);
    padding: 70px 30px;
    color: var(--White);
    overflow: visible;
}

/* container layout */

.cta-band .container{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    position:relative;
    z-index:2;
}

/* تصویر */

.cta-image{
    position:absolute;
    right:200px;
    bottom:0;   /* باعث میشه سر بیرون باشه */
    height:420px;
    z-index:1;
    pointer-events:none;
}

/* text */

.cta-band h3 {
    font-size: 22px;
    margin: 0 0 8px 0;
    font-weight: 600;
    color: var(--black);
}

.cta-band i {
    color: var(--blue-color);
    font-size: 30px;
}

.cta-band p {
    padding: 10px 100px 10px 0;
    color: var(--black);
}

/* button */

.cta-btn {
    margin: 10px 0;
}

.cta-btn a {
    background: var(--orang-color);
    color: var(--black);
    padding: 8px 22px;
    border-radius: 5px;
}

.cta-btn a:hover {
    background: #444;
    color: var(--White);
    transition: 0.3s;
}

/*****************footer**************/
footer {
    text-align: center;
    padding: 1rem 0 0;
    background-color: var(--black);
    color: #888888;
}

.f-container {
    display: flex;
    justify-content: space-around;
    padding: 50px 0;
    border-bottom: 1px solid #444;
}

.f-about {
    width: 30%;
    text-align: left;
}

.quick-link, .f-contact h2 {
    margin-top: 20px;
    text-align: left;
}

.quick-link h2, .f-contact h2 {
    font-size: 1.5rem;
    color: #0b93ff;
    font-weight: 600;
}

.quick-link ul, .f-contact ul li {
    padding-top: 1rem;
}

.quick-link ul li, .f-contact ul li {
    padding: 10px 0px;
    border-bottom: 1px #666666 dashed;
    text-align: left;
    list-style: none;
}

.quick-link ul li:last-child, .f-contact ul li:last-child {
    border-bottom: none;
}

.quick-link ul li a {
    color: var(--White);
    text-decoration: none;
}
.f-contact{
    text-align: left;
}
.f-contact i {
    color: var(--blue-color);
    font-size: 20px;
}

.f-contact ul li, .f-contact ul li a {
    color: var(--White);
    text-align: left;
}


.copy-right {
    background-color: var(--black);
    color: #666666;
    font-weight: 600;
}

.own-copy-right {
    color: var(--blue-color);
}

.copy-right p {
    padding: 1.25rem 0;
    margin: 0px;
}

.copy-right a {
    color: #0b93ff;
}
.footer-logo img {
    max-width: 160px;
    height: auto;
}

/*------------ button Back to Top ----------------*/

#backToTop {
    display: none;
    position: fixed;
    bottom: 40px;
    left: 40px;
    z-index: 100;
    background-color: #444444;
    border: 2px solid #007bff;
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#backToTop i {
    font-size: 20px;
}

#backToTop:hover {
    background-color: var(--blue-color);
}


/*=====================single--page =====================*/

.single-header{
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    min-height: 220px;
    background: var(--light-orang-color);
    text-align: center;
}

.single-header h1 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 700;
}
.single-content{
    border: 1px solid #ddd;
    padding: 20px 0;
    margin: 20px 0;

}

/*-----------------breadcrumb--------------*/
.breadcrumb {
    position: relative;
    z-index: 2;
    font-size: 14px;
    margin-top: -30px;
}

.breadcrumb a {
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb span {
    margin: 0 6px;
}




/* ============ Responsive ============= */
/* جلوگیری از اسکرول */
body.menu-open {
    overflow: hidden;
}

/* ======================
   MOBILE MENU
====================== */

.navigation {
    position: fixed;
    top: 0;
    left: -260px;
    width: auto;
    height: 100%;
    background: #fff;
    padding: 70px 35px;
    z-index: 1000;
    transition: left 0.35s ease;
    overflow-y: auto;
}

.navigation.active {
    left: 0;
}

/* menu list */
.navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navigation ul li {
    border-bottom: 1px solid #222;
}

.navigation ul li a {
    display: block;
    padding: 12px 10px;
    color: #000;
    text-decoration: none;
    font-size: 16px;
}

/* sub menu */
.navigation ul li ul.sub-menu {
    display: none;
    padding-left: 15px;
    background: #fff;
}

.navigation ul li.active > ul.sub-menu {
    display: block;
}

/* arrow */
.navigation ul li.menu-item-has-children > a {
    position: relative;
    padding-right: 30px;
}

.navigation ul li.menu-item-has-children > a::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.navigation ul li.active > a::after {
    transform: translateY(-50%) rotate(180deg);
}
.mobile-logo img {
    width: 140px; /* عرض پیشنهادی */
    height: auto; /* ارتفاع خودکار */
    display: block;
    margin: 0 auto 20px auto; /* مرکز چین کردن و فاصله پایین */
}




/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .why-me-skills {
        justify-content: flex-start;
    }
    .cta-btn a {
        padding: 10px 18px;
        font-size: 14px;
    }
    .experience-card {
        padding: 20px 15px;
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .why-me-skills {
        justify-content: flex-start;
    }

    .cta-btn a {
        padding: 10px 15px;
    }
}

/* انیمیشن */
@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(5px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* موبایل */
@media(max-width:768px){

.dynamic-buttons .btn-group{
    flex-direction:column;
}

.dynamic-buttons .dyn-btn{
    width:100%;
}

}



/********************************/
