﻿body {
    
    background: #050a14;
    color: #ffffff;
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
}



/* =========================
       VARIABLES
    ========================= */

:root {
    --bg: #050a14;
    --bg2: #091120;
    --card: #0c1728;
    --card2: #101d31;
    --text: #edf2ff;
    --muted: #9aa8c3;
    --purple: #7c5cff;
    --blue: #4e83ff;
    --border: rgba(160, 180, 255, 0.13);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* =========================
       GENERAL
    ========================= */

.container {
    width: min(1180px, 92%);
    margin: auto;
}
.container h2{padding:3% 0 3% 0}

/* =========================
       HEADER
    ========================= */


/* Buttons */

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

.search-btn {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    border: 1px solid var(--border);
    background: #0c1627;
    color: white;
    cursor: pointer;
    font-size: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 13px;
    color: white;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary {
    background: linear-gradient( 135deg, #ff9700, #ff9700 );
    box-shadow: 0 8px 30px rgba(99, 78, 255, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-3px);
    }

/* =========================
       HERO
    ========================= */

.heroPortfolio {
    padding: 80px 0 50px;
    overflow: hidden;
    background: radial-gradient( circle at 15% 20%, rgba(75, 72, 255, 0.15), transparent 30% );
}
.heroPortfolio img{width:100%;margin:10% 10% 0 0}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.breadcrumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px;
}

    .breadcrumb span {
        color: #b6a9ff;
    }

.heroPortfolio h1 {
    font-size: clamp(42px, 6vw, 59px);
    line-height: 1.2;
    margin-bottom: 20px;
}

    .heroPortfolio h1 span {
        color: #0073f9;
    }

.hero-text {
    color: var(--muted);
    max-width: 560px;
    font-size: 16px;
}

/* Stats */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 40px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat {
    padding: 18px 10px;
    text-align: center;
    border-left: 1px solid var(--border);
}

    .stat:last-child {
        border-left: none;
    }

.stat-number {
    display: block;
    font-size: 21px;
    color: #0073f9;
    font-weight: bold;
}

.stat-text {
    color: var(--muted);
    font-size: 12px;
}

/* =========================
       HERO MOCKUP
    ========================= */

.hero-visual {
    position: relative;
    height: 420px;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
}

.glow-1 {
    width: 380px;
    height: 380px;
    background: radial-gradient( circle, rgba(76, 91, 255, 0.3), transparent 70% );
    left: 20px;
    top: 0;
}

.glow-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient( circle, rgba(170, 57, 255, 0.25), transparent 70% );
    right: 0;
    bottom: 0;
}

.screen {
    position: absolute;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(160, 185, 255, 0.22);
    background: linear-gradient( 145deg, #162842, #091321 60% );
    box-shadow: var(--shadow);
}

    .screen::before {
        content: "";
        display: block;
        height: 28px;
        border-bottom: 1px solid var(--border);
        background: rgba(255, 255, 255, 0.03);
    }

.screen-back {
    width: 280px;
    height: 230px;
    left: 0;
    top: 120px;
    transform: rotate(8deg);
    opacity: 0.7;
}

.screen-main {
    width: 360px;
    height: 290px;
    left: 90px;
    top: 55px;
    transform: rotate(-5deg);
}

.screen-front {
    width: 250px;
    height: 200px;
    right: 0;
    bottom: 30px;
    transform: rotate(7deg);
}

.mock-content {
    padding: 20px;
}

.mock-logo {
    color: #a595ff;
    font-size: 11px;
    font-weight: bold;
}

.mock-title {
    margin-top: 30px;
    font-size: 23px;
    font-weight: bold;
    line-height: 1.5;
}

.mock-title-small {
    font-size: 17px;
}

.mock-line {
    width: 80%;
    height: 8px;
    margin-top: 10px;
    border-radius: 20px;
    background: rgba(220, 230, 255, 0.12);
}

    .mock-line.small {
        width: 60%;
    }

.mock-button {
    width: 110px;
    height: 30px;
    margin-top: 18px;
    border-radius: 8px;
    background: linear-gradient( 90deg, #885bff, #4b7fff );
}

.mock-cards {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.mini-card {
    flex: 1;
    height: 65px;
    border-radius: 10px;
    background: linear-gradient( 145deg, #714b9d, #172943 );
}

/* =========================
       PORTFOLIO
    ========================= */

.portfolio {
    padding: 40px 0 80px;
}

/* Filters */

.filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 35px;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 100px;
    background: #0d1828;
    color: #d4dbeb;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: 0.3s;
}

    .filter-btn:hover {
        border-color: #7d69ff;
    }

    .filter-btn.active {
        border-color: transparent;
        background: linear-gradient( 135deg, #9b6bff, #5a80ff );
    }

/* Projects Grid */

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

.project-card {
    overflow: hidden;
    border-radius: 17px;
    border: 1px solid var(--border);
    background: linear-gradient( 180deg, rgba(18, 31, 52, 0.98), rgba(9, 18, 32, 0.98) );
    transition: 0.35s;
}

    .project-card:hover {
        transform: translateY(-8px);
        border-color: rgba(130, 110, 255, 0.55);
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    }

/* Thumbnail */

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    padding: 15px;
    background: linear-gradient( 135deg, #111b2c, #263c59 );
}

.project-tag {
    position: absolute;
    z-index: 5;
    top: 14px;
    right: 14px;
    padding: 4px 13px;
    border-radius: 30px;
    border: 1px solid rgba(138, 109, 255, 0.8);
    background: rgba(10, 17, 31, 0.85);
    color: #ddd5ff;
    font-size: 12px;
}

/* Fake Website */

.fake-site {
    position: absolute;
    inset: 35px 20px 0;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    background: #f1f5fb;
    transform: perspective(600px) rotateY(-7deg) rotateX(4deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

    .fake-site.dark {
        background: #080d15;
    }



.dark .site-header {
    background: #151e2c;
}



.site-hero {
    height: 70px;
    border-radius: 8px;
    background: linear-gradient( 135deg, #6e89b5, #d8e5f5 );
    margin-bottom: 12px;
}

.dark .site-hero {
    background: linear-gradient( 135deg, #111827, #4d2f72 );
}

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

    .site-columns div {
        height: 50px;
        border-radius: 6px;
        background: #d8e4f1;
    }

.dark .site-columns div {
    background: #19243a;
}

/* Project Info */

.project-content {
    padding: 20px;
}

    .project-content h3 {
        font-size: 17px;
        margin-bottom: 8px;
    }

    .project-content p {
        min-height: 50px;
        color: var(--muted);
        font-size: 13px;
    }

.project-link {
    display: inline-block;
    margin-top: 15px;
    color: #9d8cff;
    font-size: 13px;
    transition: 0.3s;
}

    .project-link:hover {
        color: white;
    }

/* =========================
       CTA
    ========================= */

/* =========================
   CTA (Responsive)
========================= */

.cta {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(20px, 4vw, 40px);
    align-items: center;
    margin-top: clamp(30px, 5vw, 60px);
    margin-bottom: clamp(40px, 7vw, 80px);
    padding: clamp(24px, 4vw, 40px) clamp(20px, 4.5vw, 45px);
    border-radius: clamp(18px, 2.5vw, 25px);
    overflow: hidden;
    border: 1px solid rgba(130, 125, 255, 0.3);
    background:
        radial-gradient(circle at 10% 20%, rgba(121, 79, 255, 0.4), transparent 30%),
        linear-gradient(100deg, #121b3a, #0d1727);
}

.cta-small {
    color: #9f96ff;
    font-size: 13px;
}

/* تصویر: دیگر absolute نیست تا در همه اندازه‌ها درست جا بگیرد */
.devices {
    position: relative;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.devices img {
    position: static;
    top: auto;
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 0 auto;
}

.cta h2 {
    margin: 0 0 20px;
    padding: 0;                       /* padding عمومی .container h2 را خنثی می‌کند */
    font-size: clamp(17px, 1.4vw + 11px, 27px);
    line-height: 1.9;
    color: #fff;
}

.cta p {
    color: var(--muted);
    margin-bottom: 20px;
}

.cta .btn {
    min-height: 46px;
    padding: 0 clamp(16px, 3vw, 26px);
    font-size: clamp(13px, 0.6vw + 11px, 16px);
    text-align: center;
    white-space: normal;
    line-height: 1.6;
}

/* ---------- تبلت و کوچکتر ---------- */
@media (max-width: 950px) {
    .cta {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .devices img {
        max-width: 360px;
    }
}

/* ---------- موبایل ---------- */
@media (max-width: 600px) {
    .cta {
        gap: 18px;
    }

    .devices img {
        max-width: 260px;
    }

    .cta .btn {
        width: 100%;
    }
}

/* ---------- موبایل‌های خیلی کوچک ---------- */
@media (max-width: 360px) {
    .cta {
        padding: 20px 14px;
    }

    .devices img {
        max-width: 200px;
    }
}

/* ---------- صفحه‌های خیلی بزرگ ---------- */
@media (min-width: 1600px) {
    .devices img {
        max-width: 480px;
    }
}

/* Devices */

.devices {
    position: relative;
    height: 180px;
}
    .devices img {
        width: 100%;
        position: absolute;
        top: -84px;
    }

.laptop {
    position: absolute;
    width: 250px;
    height: 150px;
    bottom: 0;
    right: 50px;
    border: 8px solid #162338;
    border-bottom-width: 14px;
    border-radius: 12px;
    background: linear-gradient( 135deg, #dde8f5, #557399 );
    transform: rotate(-8deg);
}

.phone {
    position: absolute;
    width: 68px;
    height: 125px;
    right: 0;
    bottom: 0;
    border: 6px solid #17243a;
    border-radius: 15px;
    background: linear-gradient( 135deg, #273c64, #9c75ff );
    transform: rotate(7deg);
}

/* =========================
       RESPONSIVE
    ========================= */

@media (max-width: 950px) {

    .nav-links {
        display: none;
    }

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

    .hero-visual {
        order: -1;
        height: 330px;
    }

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

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

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

@media (max-width: 600px) {

    .navbar {
        height: 65px;
    }

    .brand {
        font-size: 17px;
    }

    .search-btn {
        display: none;
    }

    .nav-actions .btn {
        font-size: 12px;
        padding: 0 12px;
    }

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

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

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

    .cta {
        padding: 28px 22px;
    }

        .cta h2 {
            font-size: 25px;
        }

    .copyright {
        flex-direction: column;
        gap: 8px;
    }

    .screen-main {
        transform: scale(0.8) rotate(-5deg);
    }

    .screen-back {
        transform: scale(0.65) rotate(8deg);
    }

    .screen-front {
        transform: scale(0.7) rotate(7deg);
    }
}
