/*
Theme Name: Anoweb
Theme URI: https://anoweb.sk
Author: Anoweb Team
Author URI: https://anoweb.sk
Description: Digitalna agentura - moderne WordPress tema pre kreativne agentury
Version: 1.0.0
License: GPL v2 or later
Text Domain: anoweb
*/

:root {
    --bg: #ffffff;
    --main: #ff0055;
    --dark: #000000;
    --gray: #f2f2f2;
    --border: rgba(0,0,0,0.05);
    --code-bg: #1a1a1a;
    --padding-side: 40px;
    --header-top: 35px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Unbounded', sans-serif;
}

body {
    background: var(--bg);
    color: var(--dark);
    overflow-x: hidden;
}

.container {
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Background Abstractions */
.bg-abstractions {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.abs-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float-bg 20s infinite alternate ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--main);
    top: -100px;
    left: -100px;
    animation-duration: 25s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #0088ff;
    bottom: 10%;
    right: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: #ffcc00;
    top: 40%;
    left: 30%;
    opacity: 0.08;
    animation-duration: 15s;
}


 /* --- ЛОГОТИП  --- */
        .fixed-logo {
            position: relative;
            top: 35px;
            left: 85px;
            z-index: 10;
            font-weight: 900;
            font-size: 1.6rem;
            text-decoration: none;
            color: var(--dark);
            letter-spacing: -1px;
            transition: 0.2s;
            pointer-events: auto;
            background: transparent;
            line-height: 1;
        }
        .fixed-logo span { color: var(--main); }
        .fixed-logo:hover { opacity: 0.8; }

@keyframes float-bg {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(50px, 100px) scale(1.2);
    }
}

/* Navigation */
header {
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2000;
    background: transparent;
    pointer-events: none;
}

.menu-toggle {
    width: 50px;
    height: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 2100;
    position: fixed;
    top: 35px;
    right: 35px;
    pointer-events: auto;
}

.line {
    width: 100%;
    height: 5px;
    background: var(--dark);
    transition: 0.4s;
    border-radius: 10px;
}

.open .line {
    background: #fff;
}

.open .line:nth-child(1) {
    transform: translateY(15px) rotate(45deg);
}

.open .line:nth-child(2) {
    opacity: 0;
}

.open .line:nth-child(3) {
    transform: translateY(-15px) rotate(-45deg);
}

.full-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: var(--main);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1500;
    transition: 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}

.full-menu.active {
    right: 0;
}

.full-menu a {
    color: white;
    font-size: 2.5rem;
    font-weight: 900;
    text-decoration: none;
    margin: 15px 0;
    text-transform: uppercase;
    cursor: pointer;
}

.full-menu a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    padding: 140px 0 60px;
    min-height: 95vh;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 40px;
}

.hero-left {
    display: flex;
    flex-direction: column;
}

.hero-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.status-pill {
    background: var(--dark);
    color: #fff;
    padding: 8px 15px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.hero h1 {
    font-size: clamp(2.2rem, 11vw, 7.5rem);
    line-height: 0.8;
    letter-spacing: -5px;
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 40px;
}

.hero h1 .outline {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--dark);
}

.hero h1 .accent {
    color: var(--main);
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.4;
    opacity: 0.8;
    max-width: 500px;
}

.hero-right {
    position: relative;
    display: flex;
    justify-content: center;
}

.terminal-window {
    width: 100%;
    max-width: 550px;
    background: var(--code-bg);
    border-radius: 20px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.25);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: 0.5s;
}

.terminal-window:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.terminal-header {
    background: #2d2d2d;
    padding: 12px 20px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-r { background: #ff5f56; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #27c93f; }

.terminal-title {
    color: #888;
    font-size: 0.7rem;
    font-family: 'Fira Code', monospace;
    margin-left: 10px;
}

.terminal-body {
    padding: 30px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #dcdcdc;
    min-height: 320px;
}

.code-keyword { color: #c678dd; }
.code-func { color: #61afef; }
.code-string { color: #98c379; }
.code-comment { color: #5c6370; font-style: italic; }
.cursor-line {
    border-right: 8px solid var(--main);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

@media (min-width: 1024px) {
    .hero {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 40px;
    }
}

/* Logos Section */
.logos {
    position: relative;
    z-index: 2;
    display: flex;
    overflow: hidden;
    padding: 40px 0;
    border-top: 1px solid var(--gray);
    border-bottom: 1px solid var(--gray);
    margin: 40px 0;
}

.logo-track {
    display: flex;
    gap: 50px;
    animation: scroll 20s linear infinite;
    white-space: nowrap;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.logo-track img {
    height: 58px;
    width: auto;
    opacity: 0.35;
    filter: grayscale(100%) contrast(1.2);
    transition: 0.3s ease;
}

.logo-track img:hover {
    opacity: 0.7;
    transform: scale(1.25);
}

/* Section Styles */
.section-padding {
    padding: 80px 0;
}

.label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--main);
    margin-bottom: 20px;
    display: block;
}

/* Cases / Portfolio */
.cases-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 30px;
    scroll-snap-type: x mandatory;
    cursor: grab;
}

.cases-wrapper::-webkit-scrollbar {
    height: 8px;
    display: block;
}

.cases-wrapper::-webkit-scrollbar-track {
    background: var(--gray);
    border-radius: 10px;
}

.cases-wrapper::-webkit-scrollbar-thumb {
    background: var(--main);
    border-radius: 10px;
}

.case-card {
    flex: 0 0 85%;
    background: var(--gray);
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid var(--border);
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.case-card:hover {
    transform: translateY(-10px);
}

.case-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.case-info {
    padding: 30px;
}

@media (max-width: 768px) {
    .fixed-logo {
    position: relative;
    top: 35px;      
    left: 22px;   
    font-weight: 900;
    font-size: 1.6rem;
    text-decoration: none;
    color: var(--dark);
    letter-spacing: -1px;
}
}

@media (min-width: 768px) {
    .case-card {
        flex: 0 0 450px;
    }
}

/* Bento / Services */
.bento {
    display: grid;
    gap: 15px;
    grid-template-columns: 1fr;
}

.bento-card {
    background: var(--gray);
    padding: 40px;
    border-radius: 40px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-5px);
}

@media (min-width: 768px) {
    .bento {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* FAQ */
.faq-item {
    background: var(--gray);
    border-radius: 20px;
    margin-bottom: 10px;
    overflow: hidden;
    cursor: pointer;
}

.faq-header {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.faq-header i {
    transition: 0.3s;
}

.faq-body {
    max-height: 0;
    padding: 0 25px;
    color: #666;
    transition: 0.4s;
    overflow: hidden;
}

.faq-item.active .faq-body {
    max-height: 200px;
    padding-bottom: 25px;
}

.faq-item.active .faq-header i {
    transform: rotate(180deg);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    padding: 15px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 600px;
    padding: 60px 40px;
    border-radius: 50px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 35px;
    font-size: 3rem;
    cursor: pointer;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 22px;
    margin-bottom: 15px;
    border-radius: 20px;
    border: none;
    background: var(--gray);
    font-size: 1.1rem;
    outline: none;
}

.modal-content button {
    width: 100%;
    background: var(--main);
    color: white;
    border: none;
    padding: 25px;
    border-radius: 20px;
    font-weight: 900;
    cursor: pointer;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 20px 120px;
    border-radius: 40px 40px 0 0;
    text-align: center;
}

/* CTA Button */
.cta-fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: 20px;
    background: var(--dark);
    color: white;
    padding: 22px;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    font-weight: 900;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.cta-fixed:hover {
    transform: scale(1.05);
    color: white;
}

@media (min-width: 768px) {
    .cta-fixed {
        width: auto;
        left: auto;
        right: 40px;
        bottom: 40px;
        padding: 25px 60px;
    }
}

/* Project Modal */
.project-view {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    z-index: 2500;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-view.active {
    bottom: 0;
}

.project-content {
    max-width: 700px;
    width: 100%;
    padding: 40px;
    text-align: center;
    color: white;
    transform: scale(0.9);
    opacity: 0;
    transition: 0.4s ease;
}

.project-view.active .project-content {
    transform: scale(1);
    opacity: 1;
}

.project-content img {
    width: 100%;
    border-radius: 30px;
    margin-bottom: 25px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    transition: 0.4s;
}

.project-content img:hover {
    transform: scale(1.05);
}

.project-content h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.project-content p {
    opacity: 0.85;
}

.project-close {
    position: absolute;
    top: 30px;
    right: 35px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
}

/* Form Validation */
.form-group {
    position: relative;
}

.error-text {
    font-size: 0.75rem;
    color: red;
    margin-top: 5px;
    height: 14px;
}

input.error, textarea.error {
    border: 2px solid red;
    background: #ffecec;
}

input.success, textarea.success {
    border: 2px solid #00c853;
    background: #f1fff5;
}

body.modal-open {
    overflow: hidden;
}
/* Убираем маркеры у навигации WordPress */
.primary-menu,
.primary-menu ul,
.menu,
.menu ul,
.nav-menu,
.nav-menu ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.primary-menu li,
.menu li,
.nav-menu li {
    list-style: none !important;
}
/* Повне видалення маркерів з меню */
.full-menu,
.full-menu ul,
.full-menu li,
.full-menu ol {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Видаляємо крапки перед елементами */
.full-menu li::before,
.full-menu li::marker {
    display: none !important;
    content: "" !important;
}

/* Стилі для посилань */
.full-menu a {
    display: block;
    color: white;
    font-size: 2.5rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    margin: 15px 0;
    transition: opacity 0.3s ease;
}

.full-menu a:hover {
    opacity: 0.8;
}
/* Services Bento Cards */
.bento {
    display: grid;
    gap: 15px;
    grid-template-columns: 1fr;
}

.bento-card {
    background: var(--gray);
    padding: 40px;
    border-radius: 40px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-10px);
}

.bento-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.bento-card p {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.8;
}

@media (min-width: 768px) {
    .bento {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* FAQ Styles */
.faq-item {
    background: var(--gray);
    border-radius: 20px;
    margin-bottom: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
}

.faq-header {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.faq-header i {
    transition: 0.3s;
    font-size: 1.2rem;
}

.faq-body {
    max-height: 0;
    padding: 0 25px;
    color: #666;
    transition: 0.4s ease;
    overflow: hidden;
    line-height: 1.6;
}

.faq-item.active .faq-body {
    max-height: 500px;
    padding: 0 25px 25px 25px;
}

.faq-item.active .faq-header i {
    transform: rotate(180deg);
}