/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0b0b1a;
    --bg-secondary: #10102a;
    --bg-card: #1a1a3e;
    --bg-card-hover: #222255;
    --text-primary: #e8e8f0;
    --text-secondary: #a0a0c0;
    --accent: #7b5ea7;
    --accent-light: #9d7fd0;
    --accent-glow: rgba(123, 94, 167, 0.3);
    --border: rgba(255, 255, 255, 0.08);
    --font: 'Noto Sans Georgian', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section__title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 40px;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    z-index: 1000;
    background: rgba(10, 10, 26, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 0 8px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 16px;
}

.nav__logo-img {
    height: 28px;
    width: auto;
}

.nav__menu {
    display: flex;
    gap: 28px;
}

.nav__link {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.nav__link:hover,
.nav__link.active {
    color: var(--text-primary);
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.4rem;
    cursor: pointer;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero__bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__window {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: url('../assets/images/hero-bg.jpeg') center/cover no-repeat;
}

.hero__stars-field { display: none; }
.hero__planet { display: none; }

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero__title {
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 28px;
    line-height: 1.3;
    text-shadow: 0 0 40px rgba(123, 94, 167, 0.3);
}

.hero__btn {
    display: inline-block;
    padding: 12px 36px;
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font);
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(4px);
    transition: all 0.3s;
    cursor: pointer;
}

.hero__btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.4);
}

/* ===== Services ===== */
.services {
    padding: 80px 0;
    background: var(--bg-primary);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.service-card {
    text-align: center;
}


.service-card__image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.service-card__image img {
    width: 65%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 12px rgba(123, 94, 167, 0.3));
}

.service-card__image--social {
    background: linear-gradient(135deg, #1a1040, #2a1860, #1a1040);
    box-shadow: inset 0 0 40px rgba(100, 60, 180, 0.2);
}

.service-card__image--branding {
    background: linear-gradient(135deg, #1a1a40, #302060, #1a1a40);
    box-shadow: inset 0 0 40px rgba(120, 80, 180, 0.2);
}

.service-card__image--content {
    background: linear-gradient(135deg, #151538, #252050, #151538);
    box-shadow: inset 0 0 40px rgba(80, 60, 160, 0.2);
}

.service-card__image--ads {
    background: linear-gradient(135deg, #1a1240, #281860, #1a1240);
    box-shadow: inset 0 0 40px rgba(100, 50, 170, 0.2);
}

.service-card__image::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 50% 80%, rgba(255,255,255,0.2), transparent);
}

.service-card__title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.services__nav {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* Circle buttons */
.circle-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
}

/* ===== About ===== */
.about {
    background: #000;
}

.about__wrapper {
    display: grid;
    grid-template-columns: 45% 55%;
    min-height: 550px;
}

.about__image-side {
    position: relative;
    overflow: hidden;
}

.about__robot-bg {
    position: absolute;
    inset: 0;
    background: url('../assets/images/robot-face.jpeg') left center/cover no-repeat;
}

.about__robot-face {
    display: none;
}

.about__content-side {
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about__text {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ===== Contact ===== */
.contact {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background: var(--bg-primary);
}

.contact__bg {
    position: absolute;
    inset: 0;
    background: url('../assets/images/contact-bg.jpeg') center/cover no-repeat;
}

.contact__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 26, 0.6);
}

.contact__planet { display: none; }

.contact__inner {
    position: relative;
    z-index: 2;
}

.contact__grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact__item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact__info a {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
}

.contact__info a:hover {
    color: var(--accent-light);
}

/* ===== Projects ===== */
.projects {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.projects__slider {
    display: flex;
    align-items: center;
    gap: 16px;
}

.projects__track {
    overflow: hidden;
    flex: 1;
}

.projects__track-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    transition: transform 0.4s ease;
    width: 100%;
}

.project-card {
    min-width: calc(25% - 15px);
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    flex-shrink: 0;
    transition: all 0.3s;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.project-card__logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.project-logo-h {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2a5a3a;
    font-family: serif;
}

.project-logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
}

.project-logo-sf {
    font-size: 2rem;
    font-weight: 800;
    color: #c41e3a;
    font-style: italic;
}

.project-card__logo i {
    font-size: 2rem;
    color: #1a1a2e;
}

.project-card__sub {
    font-size: 0.65rem;
    color: #666;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dot.active {
    background: var(--accent);
}

/* ===== Footer ===== */
.footer {
    padding: 40px 0 24px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
}

.footer__top {
    margin-bottom: 24px;
}

.footer__logo-img {
    height: 24px;
    width: auto;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 24px;
}

.footer__col h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.footer__col a {
    display: block;
    color: var(--accent-light);
    font-size: 0.8rem;
    margin-bottom: 6px;
}

.footer__col a:hover {
    color: var(--text-primary);
}

.footer__col--right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.footer__dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}

.dot--active {
    background: var(--text-primary);
}

.footer__nav-btns {
    display: flex;
    gap: 8px;
}

.footer-nav-btn {
    padding: 6px 16px;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.3s;
}

.footer-nav-btn:hover {
    border-color: rgba(255,255,255,0.4);
    color: var(--text-primary);
}

.footer__copy {
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ===== Tablet (max 968px) ===== */
@media (max-width: 968px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__wrapper {
        grid-template-columns: 40% 60%;
        min-height: 400px;
    }

    .about__content-side {
        padding: 32px 20px;
    }

    .project-card {
        min-width: calc(50% - 10px);
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact {
        padding: 70px 0;
    }
}

/* ===== Mobile (max 768px) ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .section__title {
        font-size: 1.4rem;
        margin-bottom: 28px;
    }

    /* Header mobile */
    .header {
        width: 94%;
        top: 10px;
        border-radius: 40px;
        padding: 0 4px;
    }

    .nav {
        height: 50px;
        padding: 0 12px;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 26, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        transform: translateY(-100%);
        transition: transform 0.4s ease;
        z-index: 999;
    }

    .nav__menu.show {
        transform: translateY(0);
    }

    .nav__link {
        font-size: 1.1rem;
    }

    .nav__toggle {
        display: block;
        z-index: 1001;
    }

    /* Hero mobile */
    .hero {
        height: 70svh;
        min-height: 400px;
    }

    .hero__window {
        background-position: center center;
    }

    .hero__title {
        font-size: 1.6rem;
        padding: 0 16px;
        margin-bottom: 20px;
    }

    .hero__btn {
        padding: 10px 28px;
        font-size: 0.85rem;
    }

    /* Services mobile */
    .services {
        padding: 60px 0;
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .service-card__image {
        border-radius: 12px;
    }

    .service-card__title {
        font-size: 0.75rem;
    }

    .circle-btn {
        width: 38px;
        height: 38px;
        font-size: 0.8rem;
    }

    /* About mobile */
    .about__wrapper {
        grid-template-columns: 35% 65%;
        min-height: 350px;
    }

    .about__content-side {
        padding: 16px 12px;
    }

    .about__text {
        font-size: 0.65rem;
        line-height: 1.5;
    }

    .about .section__title {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    /* Contact mobile */
    .contact {
        padding: 50px 0;
    }

    .contact__bg {
        background-position: center;
    }

    .contact__info a {
        font-size: 0.9rem;
    }

    /* Projects mobile */
    .projects {
        padding: 60px 0;
    }

    .project-card {
        min-width: calc(50% - 10px);
        padding: 24px 12px;
    }

    .project-logo-h {
        font-size: 1.8rem;
    }

    .project-logo-text {
        font-size: 0.95rem;
    }

    .project-logo-sf {
        font-size: 1.5rem;
    }

    .project-card__sub {
        font-size: 0.55rem;
    }

    /* Footer mobile */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer__col--right {
        align-items: flex-start;
        gap: 12px;
    }
}

/* ===== Small Mobile (max 480px) ===== */
@media (max-width: 480px) {
    .hero {
        height: 60svh;
        min-height: 350px;
    }

    .hero__title {
        font-size: 1.3rem;
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services__grid {
        gap: 10px;
    }

    .service-card__image {
        aspect-ratio: 1;
    }

    .service-card__title {
        font-size: 0.7rem;
    }

    .about__wrapper {
        grid-template-columns: 30% 70%;
        min-height: 280px;
    }

    .about__text {
        font-size: 0.6rem;
        line-height: 1.4;
    }

    .about .section__title {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .project-card {
        min-width: 100%;
    }

    .contact__item {
        gap: 12px;
    }

    .contact__icon {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }

    .contact__info a {
        font-size: 0.85rem;
    }
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
