/* ===================================================================
 * SeMo Lab - Minimal Studio Website Styles
 * Inspired by sepehrmohammady.ir
 * =================================================================== */

/* ------------------------------------------------------------------- 
 * ## base styles
 * ------------------------------------------------------------------- */

:root {
    --color-bg: #0a0a0a;
    --color-bg-light: #111111;
    --color-text: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.6);
    --color-accent: #00d4ff;
    --color-accent-hover: #00b8e6;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition-base: 0.3s ease;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--color-accent-hover);
}

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

/* ------------------------------------------------------------------- 
 * ## animated background circles
 * ------------------------------------------------------------------- */

.circles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.circles span {
    position: absolute;
    display: block;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 50%;
    animation: animate 25s linear infinite;
    bottom: -150px;
}

.circles span:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.circles span:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.circles span:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.circles span:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.circles span:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.circles span:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.circles span:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.circles span:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.circles span:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.circles span:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}

@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
    }
}

/* ------------------------------------------------------------------- 
 * ## page wrapper
 * ------------------------------------------------------------------- */

.page-wrap {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ------------------------------------------------------------------- 
 * ## header / navigation
 * ------------------------------------------------------------------- */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.9), transparent);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    gap: 3rem;
}

.nav a {
    color: var(--color-text-muted);
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: color var(--transition-base);
}

.nav a:hover {
    color: var(--color-text);
}

/* ------------------------------------------------------------------- 
 * ## hero section
 * ------------------------------------------------------------------- */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12rem 4rem 8rem;
}

.hero-content {
    max-width: 800px;
}

.hero-logo {
    width: 220px;
    height: auto;
    margin: 0 auto 1rem;
    animation: fadeIn 1s ease;
}

.hero-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.hero .tagline {
    font-size: 2rem;
    color: var(--color-text-muted);
    margin-bottom: 4rem;
    margin-top: 2rem;
    animation: slideUp 0.8s ease 0.1s backwards;
}

.scroll-down {
    display: inline-block;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-down svg {
    width: 24px;
    height: 24px;
    fill: var(--color-text-muted);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* ------------------------------------------------------------------- 
 * ## section styles
 * ------------------------------------------------------------------- */

section {
    padding: 10rem 4rem;
}

.section-header {
    margin-bottom: 6rem;
}

.section-header .pretitle {
    display: inline-block;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 6rem;
}

.section-header .pretitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 4.5rem;
    height: 1px;
    background: var(--color-accent);
}

.section-header h2 {
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.3;
}

/* ------------------------------------------------------------------- 
 * ## projects grid
 * ------------------------------------------------------------------- */

.projects {
    background: var(--color-bg-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    cursor: pointer;
    text-decoration: none;
    color: var(--color-text);
    display: block;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card-image img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    transition: transform var(--transition-base);
}

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

.project-card-content {
    padding: 2rem;
}

.project-card-category {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.project-card h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.project-card p {
    font-size: 1.4rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.project-card-arrow {
    display: none;
}

/* ------------------------------------------------------------------- 
 * ## footer
 * ------------------------------------------------------------------- */

.footer {
    padding: 4rem;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-copyright {
    font-size: 1.4rem;
    color: var(--color-text-muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 1.8rem;
    transition: color var(--transition-base);
}

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

/* ------------------------------------------------------------------- 
 * ## app page styles
 * ------------------------------------------------------------------- */

.app-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 14rem 4rem 6rem;
}

.app-hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.app-logo {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.app-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.app-info h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.app-info .tagline {
    font-size: 2rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

.app-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.4rem 2.8rem;
    font-size: 1.4rem;
    font-weight: 500;
    border-radius: 50px;
    text-decoration: none;
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-bg);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    color: var(--color-bg);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ------------------------------------------------------------------- 
 * ## features section
 * ------------------------------------------------------------------- */

.features {
    background: var(--color-bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-item {
    padding: 3rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    transition: background var(--transition-base);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
    opacity: 0.7;
}

.feature-item h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-item p {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ------------------------------------------------------------------- 
 * ## screenshots section
 * ------------------------------------------------------------------- */

.screenshots {
    padding: 10rem 4rem;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.screenshot-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-base);
}

.screenshot-item:hover {
    transform: scale(1.02);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ------------------------------------------------------------------- 
 * ## back link
 * ------------------------------------------------------------------- */

.back-link {
    position: fixed;
    top: 2.5rem;
    left: 4rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--color-text-muted);
    font-size: 1.4rem;
    text-decoration: none;
    z-index: 100;
    transition: color var(--transition-base);
}

.back-link:hover {
    color: var(--color-text);
}

.back-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ------------------------------------------------------------------- 
 * ## responsive styles
 * ------------------------------------------------------------------- */

@media screen and (max-width: 1024px) {
    .hero h1 {
        font-size: 4rem;
    }

    .section-header h2 {
        font-size: 3rem;
    }

    .app-info h1 {
        font-size: 3.5rem;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 55%;
    }

    .header {
        padding: 1.5rem 2rem;
    }

    .nav {
        display: none;
    }

    .hero {
        padding: 10rem 2rem 6rem;
    }

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

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

    section {
        padding: 6rem 2rem;
    }

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

    .app-hero {
        padding: 10rem 2rem 4rem;
    }

    .app-hero-content {
        flex-direction: column;
        text-align: center;
    }

    .app-buttons {
        justify-content: center;
    }

    .back-link {
        left: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-logo {
        width: 100px;
        height: 100px;
    }

    .section-header h2 {
        font-size: 2.4rem;
    }

    .app-info h1 {
        font-size: 2.8rem;
    }

    .app-logo {
        width: 80px;
        height: 80px;
    }
}