/**
 * MIG STUDIO
 * @version 1.0.0
 * @author MIG STUDIO (Vladyslav Samoilenko)
 *
 * Table of Contents
 * -----------------
 * 1.  Reset & Variables
 * 2.  Base Styles
 * 3.  Layout
 * 4.  Header
 * 5.  Language Switcher
 * 6.  Overlay Menu
 * 7.  Hero Section
 * 8.  Buttons
 * 9.  About Section
 * 10. Services Section
 * 11. Contacts Section
 * 12. Footer
 * 13. Animations
 * 14. Media Queries
 */


/* ==========================================================================
   1. Reset & Variables
   ========================================================================== */

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

:root {
    /* Brand */
    --accent: #f59e0b;
    --accent-light: #fbbf24;

    /* Neutrals */
    --black: #050505;
    --dark: #0a0a0a;
    --card: #0f0f0f;
    --card-hover: #141414;
    --white: #fff;
    --gray: #71717a;
    --light-gray: #a1a1aa;
    --cream: #f8f8f6;
}


/* ==========================================================================
   2. Base Styles
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Onest', sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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


/* ==========================================================================
   3. Layout
   ========================================================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}


/* ==========================================================================
   4. Header
   ========================================================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: background .3s, padding .3s;
}

header.scrolled {
    background: rgba(5, 5, 5, .9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Unbounded', cursive;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -.02em;
}

.logo svg {
    width: 32px;
    height: auto;
}

/* Header CTA */
.header-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--accent);
    color: var(--black);
    font-weight: 600;
    font-size: 14px;
    border-radius: 12px;
    transition: all .2s;
}

.header-cta:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.header-cta svg {
    width: 16px;
    height: 16px;
}

/* Menu Button */
.menu-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .06);
    border-radius: 12px;
    color: var(--white);
    cursor: pointer;
    transition: background .2s;
    border: none;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, .1);
}

.menu-btn svg {
    width: 20px;
    height: 20px;
}


/* ==========================================================================
   5. Language Switcher
   ========================================================================== */

.lang {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, .1);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    transition: all .2s;
    text-transform: uppercase;
}

.lang-current:hover {
    background: rgba(255, 255, 255, .15);
}

.lang-current svg {
    width: 12px;
    height: 12px;
    opacity: .7;
    transition: transform .2s;
}

.lang.open .lang-current svg {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 100%;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    padding: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all .2s;
    z-index: 50;
}

.lang.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    display: block;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray);
    border-radius: 4px;
    transition: all .2s;
    text-transform: uppercase;
}

.lang-dropdown a:hover {
    background: rgba(255, 255, 255, .08);
    color: var(--white);
}

.lang-dropdown a.active {
    color: var(--accent);
    background: rgba(245, 158, 11, .1);
}


/* ==========================================================================
   6. Overlay Menu
   ========================================================================== */

.overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(5, 5, 5, .97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s, visibility .4s;
    height: 100vh;
    height: 100dvh;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay-inner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.overlay-header {
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .06);
    border-radius: 12px;
    color: var(--white);
    cursor: pointer;
    border: none;
    transition: all .2s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, .1);
    transform: rotate(90deg);
}

.overlay-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.overlay-link {
    display: block;
    font-family: 'Unbounded', cursive;
    font-size: clamp(40px, 10vw, 80px);
    font-weight: 800;
    margin: 10px 0;
    line-height: 1.15;
    color: rgba(255, 255, 255, .15);
    transition: all .3s;
    transform: translateY(20px);
    opacity: 0;
}

.overlay.active .overlay-link {
    transform: translateY(0);
    opacity: 1;
}

.overlay.active .overlay-link:nth-child(1) { transition-delay: .05s; }
.overlay.active .overlay-link:nth-child(2) { transition-delay: .1s; }
.overlay.active .overlay-link:nth-child(3) { transition-delay: .15s; }

.overlay-link:hover {
    color: var(--white);
}

.overlay-footer {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.overlay-contact {
    font-size: 14px;
    color: var(--gray);
}

.overlay-contact a:hover {
    color: var(--white);
}

.overlay-social {
    display: flex;
    gap: 8px;
}

.overlay-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .06);
    border-radius: 12px;
    color: var(--gray);
    transition: all .2s;
}

.overlay-social a:hover {
    background: var(--accent);
    color: var(--black);
}

.overlay-social svg {
    width: 18px;
    height: 18px;
}


/* ==========================================================================
   7. Hero Section
   ========================================================================== */

.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 70% 30%, rgba(245, 158, 11, .06) 0%, transparent 60%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 60% 50%, black 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 60% 50%, black 10%, transparent 70%);
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero h1 {
    font-family: 'Unbounded', cursive;
    font-size: clamp(22px, 5vw, 58px);
    font-weight: 900;
    line-height: .95;
    letter-spacing: -.03em;
    margin-bottom: 24px;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text {
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--light-gray);
    margin-bottom: 36px;
    line-height: 1.7;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-hexagons {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hexagon {
    position: absolute;
    animation: hexSpin 60s linear infinite;
}

.hexagon svg {
    width: 100%;
    height: 100%;
}

.hex-1 { width: 100%; height: 100%; }
.hex-2 { width: 75%; height: 75%; animation-duration: 45s; animation-direction: reverse; }
.hex-3 { width: 50%; height: 50%; animation-duration: 30s; }

.hero-logo-center {
    position: relative;
    z-index: 2;
}

.hero-logo-center svg {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(245, 158, 11, .25));
}


/* ==========================================================================
   8. Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 14px;
    transition: all .2s;
}

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

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

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

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

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


/* ==========================================================================
   9. About Section
   ========================================================================== */

#about {
    padding: 120px 0;
    background: var(--cream);
    color: var(--black);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: stretch;
}

.about-left {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
}

.about-features {
    margin-top: auto;
    padding-top: 24px;
}

.section-label {
    font-family: 'Unbounded', cursive;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.about-title {
    font-family: 'Unbounded', cursive;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
    margin-bottom: 20px;
}

.about-intro {
    font-size: 16px;
    color: #52525b;
    line-height: 1.7;
    margin-bottom: 32px;
}

/* Stats */
.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat {
    padding: 24px;
    background: var(--black);
    border-radius: 16px;
    color: var(--white);
}

.stat-value {
    font-family: 'Unbounded', cursive;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: var(--gray);
}

/* About Content */
.about-content {
    display: flex;
    flex-direction: column;
}

.about-content p {
    font-size: 17px;
    line-height: 1.85;
    margin-bottom: 24px;
    color: #3f3f46;
}

/* Feature Block */
.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: rgba(0, 0, 0, .03);
    border-radius: 14px;
}

.about-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    border-radius: 10px;
    flex-shrink: 0;
}

.about-feature-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--black);
}

.about-feature-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
    color: var(--black);
}

.about-feature-text {
    font-size: 14px;
    color: #71717a;
}

/* Quote */
.quote {
    margin-top: auto;
    padding: 32px;
    background: rgba(0, 0, 0, .04);
    border-radius: 20px;
}

.quote-text {
    font-family: 'Unbounded', cursive;
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 24px;
    color: var(--black);
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.quote-avatar {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Unbounded', cursive;
    font-weight: 700;
    font-size: 15px;
    color: var(--black);
}

.quote-info { font-size: 14px; }
.quote-name { font-weight: 600; margin-bottom: 2px; color: var(--black); }
.quote-role { color: #71717a; font-size: 13px; }


/* ==========================================================================
   10. Services Section
   ========================================================================== */

#services {
    padding: 120px 0;
}

.services-header {
    margin-bottom: 56px;
}

.services-title {
    font-family: 'Unbounded', cursive;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 12px;
}

.services-subtitle {
    font-size: 16px;
    color: var(--gray);
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.service-card {
    padding: 32px 28px;
    background: var(--card);
    border-radius: 20px;
    transition: all .25s;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    background: var(--card-hover);
    transform: translateY(-4px);
}

.service-card-title {
    font-family: 'Unbounded', cursive;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.service-card-list {
    list-style: none;
    margin-bottom: auto;
    padding-bottom: 20px;
}

.service-card-list li {
    font-size: 14px;
    color: var(--light-gray);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.service-card-list li:last-child {
    border-bottom: none;
}

.service-card-list .price {
    font-family: 'Unbounded', cursive;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}

.service-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(245, 158, 11, .1);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    color: var(--accent);
    margin-top: auto;
    line-height: 1.3;
}

/* Development Section */
.dev-section {
    margin-top: 64px;
    padding-top: 64px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.dev-section-title {
    font-family: 'Unbounded', cursive;
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    margin-bottom: 32px;
}

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

.dev-card {
    padding: 32px 24px;
    background: var(--card);
    border-radius: 20px;
    transition: all .25s;
    text-align: center;
}

.dev-card:hover {
    background: var(--card-hover);
    transform: translateY(-4px);
}

.dev-card-price {
    font-family: 'Unbounded', cursive;
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.dev-card-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.dev-card-sub {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.5;
}

/* Template Section */
.template-section {
    margin-top: 40px;
    padding: 32px;
    background: linear-gradient(135deg, var(--card) 0%, var(--card-hover) 100%);
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.template-content {
    flex: 1;
}

.template-title {
    font-family: 'Unbounded', cursive;
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    margin-bottom: 12px;
}

.template-desc {
    color: var(--light-gray);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 600px;
}

.template-bonus {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: rgba(245, 158, 11, .1);
    border-radius: 12px;
    font-size: 14px;
    color: var(--accent);
}

.template-bonus-icon {
    font-size: 18px;
}

.template-price {
    text-align: center;
    padding: 24px 32px;
    background: var(--accent);
    border-radius: 16px;
    flex-shrink: 0;
}

.template-price-value {
    font-family: 'Unbounded', cursive;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 800;
    color: var(--black);
    line-height: 1;
    margin-bottom: 4px;
}

.template-price-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(0, 0, 0, .6);
}


/* ==========================================================================
   11. Contacts Section
   ========================================================================== */

#contacts {
    padding: 120px 0;
    background: var(--card);
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contacts-title {
    font-family: 'Unbounded', cursive;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.02em;
    margin-bottom: 16px;
}

.contacts-title span {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contacts-subtitle {
    font-size: 16px;
    color: var(--gray);
    max-width: 360px;
    line-height: 1.7;
}

/* Contact Items */
.contact-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-block {
    padding: 24px;
    background: rgba(255, 255, 255, .04);
    border-radius: 16px;
    transition: background .2s;
}

.contact-block:hover {
    background: rgba(255, 255, 255, .06);
}

.contact-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 6px;
}

.contact-value {
    font-family: 'Unbounded', cursive;
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: 600;
}

.contact-value a { transition: color .2s; }
.contact-value a:hover { color: var(--accent); }

/* Contact Locations */
.contact-locations {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.contact-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--light-gray);
}

.contact-location svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent);
    flex-shrink: 0;
}

.contacts-cta {
    margin-top: 24px;
}

.contacts-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 18px 28px;
}


/* ==========================================================================
   12. Footer
   ========================================================================== */

footer {
    padding: 24px 0;
    background: var(--black);
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 13px;
    color: var(--gray);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 13px;
    color: var(--gray);
    transition: color .2s;
}

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


/* ==========================================================================
   13. Animations
   ========================================================================== */

@keyframes hexSpin {
    from { transform: rotate(0); }
    to { transform: rotate(360deg); }
}


/* ==========================================================================
   14. Media Queries
   ========================================================================== */

@media (max-width: 1100px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .dev-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-left { position: static; }
    .about-stats { grid-template-columns: repeat(4, 1fr); }
    .contacts-grid { grid-template-columns: 1fr; gap: 40px; }
    .dev-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header-cta span { display: none; }
    .header-cta { width: 40px; height: 40px; padding: 0; justify-content: center; }
    .header-cta svg { width: 18px; height: 18px; }
    .menu-btn { width: 40px; height: 40px; }
    .menu-btn svg { width: 20px; height: 20px; }
    .lang-current { padding: 5px 8px; font-size: 11px; }
    .lang-current svg { width: 10px; height: 10px; }
    .hero { padding: 100px 0 60px; }
    .services-grid { grid-template-columns: 1fr; }
    .dev-grid { grid-template-columns: 1fr 1fr; }
    .dev-card { padding: 24px 20px; }
    .template-section { flex-direction: column; text-align: center; padding: 28px 24px; }
    .template-desc { max-width: none; }
    .template-bonus { display: flex; justify-content: center; }
    .about-stats { grid-template-columns: 1fr 1fr; }
    .about-feature { padding: 16px; }
    .contact-locations { flex-direction: column; gap: 12px; }
    footer .container { flex-direction: column; gap: 16px; text-align: center; }
    #about, #services, #contacts { padding: 80px 0; }
}

@media (max-width: 500px) {
    .container { padding: 0 16px; }
    .overlay-inner { padding: 0 16px; }
    .dev-grid { grid-template-columns: 1fr; }
    .header-right { gap: 6px; }
    .stat { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}