/*
Theme Name: DevSeo Space
Theme URI: devseospace.com
Description: This is short description for theme.
Author: devseo space
Author URI: devseospace.com
Version: 1.0
*/

:root {
    --ios-dark-bg: #000000;
    --ios-dark-card: rgba(28, 28, 30, 0.8);
    --ios-dark-elevated: rgba(44, 44, 46, 0.8);
    --ios-accent: #0A84FF;
    --ios-green: #30D158;
    --ios-text: #FFFFFF;
    --ios-text-secondary: rgba(255, 255, 255, 0.6);
    --ios-text-tertiary: rgba(255, 255, 255, 0.4);
    --ios-divider: #222240;
    --ios-radius: 12px;
}

.fa, .fa-brands, .fa-classic, .fa-regular, .fa-sharp, .fa-solid, .fab, .far, .fas {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: var(--fa-display, inline-block);
    font-style: normal;
    font-variant: normal;
    line-height: 1;
    text-rendering: auto;
}

.fa-classic, .fa-regular, .fa-solid, .far, .fas {
    font-family: "Font Awesome 6 Free";
}

.fa-solid, .fas {
    font-weight: 900;
}

.fa-laptop:before {
    content: "\f109";
}

.fa-arrow-right:before {
    content: "\f061";
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #a0a0c0;
    line-height: 1.5;
    font-family: "Wix Madefor Display", sans-serif;
    font-size: 16px;
}

body {
    background: var(--ios-dark-bg);
}

#background {
  position: fixed;
  overflow: hidden;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Небо завжди за основним вмістом */
}
  
canvas {
  width: 100%;
  height: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0 0 20px 0;
}

h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    color: #fff;
}

h1 span {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
}

h2 {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    color: #fff;
}

h2 span {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.2;
}

h3 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    color: #fff;
}

h3 span {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
}

header,
main,
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid var(--ios-divider);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

.logo {
    font-weight: 700;
    font-size: 26px;
    color: #2563eb;
    text-decoration: none;
}

.logo span {
    font-size: 26px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 15px 20px;
    color: #bbbbbb;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus {
    color: #df3896;
}

.nav-link[aria-expanded="true"] {
    color: #df3896;
}

/* Індикатор підменю */
.has-submenu > .nav-link::after {
    content: '▼';
    font-size: 0.8rem;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.has-submenu[aria-expanded="true"] > .nav-link::after {
    transform: rotate(180deg);
}

/* Стилі підменю */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-width: 200px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--ios-divider);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.submenu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu .nav-link {
    padding: 12px 20px;
    color: #bbbbbb;
    border-bottom: none;
}

.submenu .nav-link:hover {
    background: none;
    color: #df3896;
}

/* Вкладені підменю */
.submenu .has-submenu {
    position: relative;
}
.submenu .has-submenu > .nav-link::after {
    content: '▶';
    float: right;
    margin-left: auto;
    margin-right: 0;
}
.submenu .submenu {
    top: 0;
    left: 100%;
    margin-left: 8px;
}

/* Мобільна кнопка */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    color: #374151;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #f3f4f6;
}
        
.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: currentColor;
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

main {
    padding: 80px 0 0 0;
    z-index: 1;
}

.header-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-height: calc(100vh - 230px);
    max-width: 600px;
    margin: 75px 0;
}

.header-block-sub-title {
    color: #1c9bef;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 20px;
    display: block;
}

h1 span,
.header-block-content-style {
    background: linear-gradient(45deg, #1c9bef, #6d25e8, #ff3e7f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.promo-cards-block {
    width: 100%;
    padding: 100px 0;
}

.promo-cards-block-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
    margin-bottom: 60px;
}

.promo-cards-block-top p {
    width: 100%;
    max-width: 700px;
    text-align: center;
}

.promo-cards-block-bottom {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.promo-cards-block-bottom-item {
    background: rgba(12, 12, 29, 0.7);
    border: 1px solid var(--ios-divider);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.promo-cards-block-bottom-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(45deg, #1c9bef, #6d25e8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.promo-cards-block-bottom-item:hover {
    transform: translateY(-10px);
    border-color: rgba(109, 37, 232, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.promo-cards-block-bottom-item:hover:before {
    transform: scaleX(1);
}

.portfolio {
    padding: 0;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, #1c9bef, #6d25e8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.service-icon:after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: #0c0c1d;
    border-radius: 18px;
    z-index: -1;
}

.service-icon-img {
    width: 100%;
    max-width: 50px;
}

.service-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.service-description {
    color: #a0a0c0;
    margin-bottom: 20px;
    font-size: 15px;
}

.service-link {
    color: #1c9bef;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.service-link i {
    color: #1d9bef;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.portfolio-top {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.portfolio-top-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-bottom {
    padding: 10px 30px;
}

.portfolio-bottom-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.portfolio-bottom-tag {
    font-size: 14px;
    color: #1c9bef;
}

.portfolio-more {
    /* margin: 130px 0; */
    margin: 50px 0;
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 14px;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid #6d25e8;
}

.btn-secondary:hover {
    background: rgba(109, 37, 232, 0.1);
    border-color: #1c9bef
}

footer {
    height: 80px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 0;
    border-top: 1px solid var(--ios-divider);
}

@media (max-width: 768px) {
.mobile-menu-toggle {
    display: block;
}

.nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: #000;
    flex-direction: column;
    padding: 20px 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-menu.show {
    transform: translateX(0);
}

.nav-item {
    width: 100%;
}

.nav-link {
    padding: 15px 20px;
    /* border-bottom: 1px solid #e5e7eb; */
}

.has-submenu > .nav-link::after {
    content: '+';
    float: right;
    font-size: 1.2rem;
    line-height: 1;
}

.has-submenu[aria-expanded="true"] > .nav-link::after {
    content: '−';
    transform: none;
}

.submenu {
    position: static;
    box-shadow: none;
    background: #000;
    transform: none;
    opacity: 1;
    visibility: visible;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-radius: 0;
    padding: 0;
    border: none;
}

.submenu.show {
    max-height: 500px;
    padding: 8px 0;
}

.submenu .nav-link {
    padding-left: 40px;
    background: none;
    /* border-bottom: 1px solid #e5e7eb; */
}

.submenu .submenu .nav-link {
    padding-left: 60px;
}

.submenu .has-submenu > .nav-link::after {
    content: '+';
    float: right;
}

.submenu .has-submenu[aria-expanded="true"] > .nav-link::after {
    content: '−';
}
}