/* 3kvadrata.kz - Main CSS */
/* ======================== */

/* Font Face declarations */
@font-face {
    font-family: '2237-font';
    src: url('../fonts/2237-font.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Root Variables */
:root {
    /* Light theme (default) */
    --bg-color: #fff;
    --card-bg: #fff;
    --card-hover: #f8f8f8;
    --header-bg: rgba(255, 255, 255, 0.95);
    --text-color: #333;
    --light-text: #777;
    --border-color: #eee;
    --shadow-color: rgba(0, 0, 0, 0.05);
    --shadow-color-hover: rgba(106, 106, 238, 0.1);
    --background-text-color: rgba(240, 240, 240, 0.5);
    --card-placeholder: #f0f0f0;
    
    /* Common colors */
    --primary-gradient: linear-gradient(45deg, #8A7EE6, #D778E3);
    --secondary-color: #6C63FF;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    
    /* Fonts */
    --heading-font: '2237-font', sans-serif;
    --body-font: 'Montserrat', sans-serif;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --card-bg: #1E1E1E;
    --card-hover: #2A2A2A;
    --header-bg: rgba(20, 20, 20, 0.95);
    --text-color: #EBEBEB;
    --light-text: #B0B0B0;
    --border-color: #333;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-color-hover: rgba(106, 106, 238, 0.2);
    --background-text-color: rgba(40, 40, 40, 0.2);
    --card-placeholder: rgba(255, 255, 255, 0.05);
    --secondary-color: #9C96FF;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6,
.section-title, .hero-title, 
.about-title-main, .why-us-title,
.card-title, .card-back-title, 
.service-title, .screen-text,
.case-card-title, .form-title, 
.footer-logo {
    font-family: var(--heading-font);
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 50px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(106, 106, 238, 0.2);
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-weight: 300;
    font-size: 2.5rem;
    color: var(--secondary-color);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    z-index: 100;
    padding: 15px 0;
    box-shadow: 0 2px 10px var(--shadow-color);
    backdrop-filter: blur(5px);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 10px 30px;
    transition: border-color 0.3s ease;
}

.nav-menu-left {
    display: flex;
    margin-right: auto;
}

.nav-menu-right {
    display: flex;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    transition: var(--transition);
    font-size: 0.9rem;
    margin: 0 15px;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: var(--secondary-color);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-bg);
    min-width: 200px;
    box-shadow: 0 8px 16px var(--shadow-color);
    border-radius: var(--border-radius);
    z-index: 1;
    top: 100%;
    margin-top: 10px;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: var(--transition);
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: var(--card-hover);
    color: var(--secondary-color);
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

/* Theme Switcher */
.theme-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background: var(--primary-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-left: 20px;
    transition: var(--transition);
}

.theme-switch-toggle {
    position: absolute;
    left: 3px;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #333;
}

.theme-switch[data-mode="dark"] .theme-switch-toggle {
    left: 33px;
}

.theme-switch-toggle::before {
    content: "☀️";
}

.theme-switch[data-mode="dark"] .theme-switch-toggle::before {
    content: "🌙";
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 200;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--secondary-color);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu a {
    font-size: 1.2rem;
    margin: 15px 0;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.mobile-menu a:hover {
    color: var(--secondary-color);
}

.mobile-social {
    display: flex;
    margin-top: 30px;
}

.mobile-social a {
    margin: 0 10px;
    font-size: 1rem;
}

.mobile-theme-container {
    display: none;
    text-align: center;
    padding: 20px 0;
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
}

.hero-title {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    margin: 0;
    line-height: 1;
}

.hero-image {
    max-width: 90%;
    width: auto;
    height: auto;
    max-height: 30vh;
    object-fit: contain;
}

.hero-description {
    margin: 50px auto;
    max-width: 700px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--light-text);
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 0 20px;
}

.hero-btn {
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(106, 106, 238, 0.2);
}

.hero-btn::after {
    content: '→';
    margin-left: 10px;
}

/* About Section */
.about-section {
    position: relative;
    padding: 50px 0 100px;
}

.about-border-container {
    position: relative;
    padding-top: 50px;
    border-top: 3px solid var(--border-color);
    border-top-left-radius: 100px;
}

.about-border-container::before {
    content: "";
    position: absolute;
    top: -3px;
    left: 0;
    width: 50%;
    height: 3px;
}

.about-label {
    position: absolute;
    top: -12px;
    left: 150px;
    background-color: var(--bg-color);
    padding: 0 15px;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--light-text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.about-title-main {
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--text-color);
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 50px;
    transition: color 0.3s ease;
}

.about-container {
    position: relative;
    padding: 60px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
}

.about-content {
    flex: 1;
    max-width: 800px;
    padding: 0;
    position: relative;
    z-index: 2;
}

.about-subtitle {
    color: #8A7EE6;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.4;
}

.about-text {
    color: var(--light-text);
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 300;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.highlight {
    color: var(--secondary-color);
    font-weight: 400;
    transition: color 0.3s ease;
}

.about-goal {
    margin-bottom: 30px;
    color: var(--light-text);
    line-height: 1.7;
    font-weight: 300;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.services-btn {
    position: absolute;
    bottom: 30px;
    right: 60px;
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.services-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(106, 106, 238, 0.2);
}

.services-btn::after {
    content: '⇾';
    margin-left: 10px;
}

.background-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12rem;
    font-weight: 900;
    color: var(--background-text-color);
    z-index: 1;
    white-space: nowrap;
    pointer-events: none;
    transition: color 0.3s ease;
}

/* Why Us Section */
.why-us {
    padding: 60px 0;
    background-color: var(--bg-color);
    transition: background-color 0.3s ease;
}

.why-us-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.why-us-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    flex-wrap: nowrap;
    position: relative;
}

.why-us-card {
    background-color: transparent;
    perspective: 1000px;
    border-radius: 15px;
    flex: 1;
    position: relative;
    height: 280px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.why-us-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
}

.card-front {
    background-color: var(--card-bg);
    background-position: center;
    background-repeat: no-repeat;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.card-front.bg-card-1 { background-image: url("/images/card1.png"); }
.card-front.bg-card-2 { background-image: url("/images/card2.png"); }
.card-front.bg-card-3 { background-image: url("/images/card3.png"); }
.card-front.bg-card-4 { background-image: url("/images/card4.png"); }

.card-back {
    background: var(--primary-gradient);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.card-number {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #8A7EE6;
    color: #8A7EE6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    background-color: var(--card-bg);
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

.card-title {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: auto;
    text-align: left;
    transition: color 0.3s ease;
}

.card-back-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.card-back-text {
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 300;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-item {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: 1px solid var(--border-color);
    text-decoration: none;
    display: block;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color-hover);
    background-color: var(--card-hover);
}

.service-number {
    font-size: 0.8rem;
    color: var(--light-text);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.service-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.service-text {
    font-size: 0.9rem;
    color: var(--light-text);
    line-height: 1.5;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

/* Packages Section */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 60px 0;
}

.package-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 40px 30px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-color-hover);
}

.package-card.featured {
    border: 2px solid var(--secondary-color);
}

.package-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.package-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
    text-align: center;
}

.package-price {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 10px;
}

.package-description {
    text-align: center;
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.package-features {
    list-style: none;
    margin-bottom: 30px;
}

.package-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.package-features li::before {
    content: "✓";
    display: inline-block;
    width: 25px;
    height: 25px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 25px;
    margin-right: 15px;
    flex-shrink: 0;
}

.package-btn {
    width: 100%;
    text-align: center;
    padding: 15px;
    background: var(--card-hover);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.package-btn.featured {
    background: var(--primary-gradient);
    color: white;
    border: none;
}

/* Animated Screen */
.animated-screen-section {
    padding: 60px 0;
}

.animated-screen {
    background: linear-gradient(90deg, #8A7EE6, #6C63FF);
    border-radius: 60px;
    height: 130px;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.screen-track {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.screen-text {
    white-space: nowrap;
    font-size: 2.8rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    line-height: 1;
    padding-right: 4rem;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Cases Section */
.cases-deck {
    position: relative;
    display: flex;
    align-items: flex-start;
}

.cases-tabs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
}

.cases-tabs .tab {
    width: 48px;
    height: 48px;
    border: 1px solid var(--border-color);
    border-radius: 0 24px 24px 0;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
    color: var(--text-color);
}

.cases-tabs .tab.active,
.cases-tabs .tab:hover {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
}

.cases-cards {
    margin-left: 64px;
    width: 100%;
    position: relative;
    min-height: 400px;
}

.case-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 8px 20px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.case-card.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: 5;
}

.case-card-header {
    margin-bottom: 20px;
}

.case-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.case-card-desc {
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.case-card-images {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.case-card-image {
    height: 180px;
    flex: 1;
    min-width: 200px;
    background-color: var(--card-placeholder);
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
    overflow: hidden;
}

.case-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    display: block;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 5vh 5vw;
}

.lightbox.open { display: flex; }

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.lb-btn {
    position: absolute;
    top: 20px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: #fff;
    font-size: 20px;
    line-height: 0;
    cursor: pointer;
    user-select: none;
    transition: background .2s, transform .2s;
}

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

.lb-close { right: 20px; }
.lb-prev, .lb-next {
    top: 50%;
    transform: translateY(-50%);
}
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* Work Process Section */
.work-process-section {
    padding: 80px 0;
    background-color: var(--bg-color);
    position: relative;
    transition: background-color 0.3s ease;
}

.work-process-header {
    text-align: center;
    margin-bottom: 60px;
}

.work-process-title {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--secondary-color);
    margin-bottom: 35px;
    transition: color 0.3s ease;
}

.process-cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 17px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.process-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.4);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.process-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px var(--shadow-color);
    cursor: pointer;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-color-hover);
    background-color: var(--card-hover);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 20px;
}

.step-title {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.process-card:hover .step-title {
    color: var(--secondary-color);
}

.step-description {
    color: var(--light-text);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.step-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--light-text);
    font-size: 0.85rem;
    line-height: 1.5;
}

.detail-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.extra-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s ease, opacity 0.6s ease;
}

.process-card:hover .extra-info {
    max-height: 150px;
    opacity: 1;
}

.time-badge {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(106, 106, 238, 0.1);
    color: var(--secondary-color);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.price-hint {
    color: var(--light-text);
    font-size: 0.8rem;
    font-style: italic;
}

.optional-tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(106, 106, 238, 0.1);
    color: var(--secondary-color);
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 10px;
}

/* Contact Form */
.contact {
    background-color: var(--bg-color);
    padding: 80px 0;
    transition: background-color 0.3s ease;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-color);
    padding: 0;
    transition: background-color 0.3s ease;
}

.form-title {
    text-align: left;
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 40px;
    color: var(--secondary-color);
    line-height: 1.2;
    text-transform: none;
    transition: color 0.3s ease;
}

.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    margin-bottom: 15px;
    font-weight: 400;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.form-control {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    background-color: transparent;
    color: var(--text-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--light-text);
}

.form-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.form-option-item {
    display: inline-block;
}

.form-option-item input[type="radio"] {
    display: none;
}

.form-option-item label {
    display: block;
    padding: 8px 20px;
    background-color: var(--card-bg);
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    color: var(--light-text);
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.form-option-item input[type="radio"]:checked + label {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.form-note {
    margin: 20px 0 40px;
    color: var(--secondary-color);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.form-btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    text-transform: uppercase;
}

.form-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(106, 106, 238, 0.2);
}

.form-btn::after {
    content: '→';
    margin-left: 10px;
}

.form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-status.success {
    background: rgba(36, 161, 72, 0.1);
    color: #24a148;
    display: block;
}

.form-status.error {
    background: rgba(218, 30, 40, 0.1);
    color: #da1e28;
    display: block;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
}

.footer-logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
    text-decoration: none;
}

.footer-contact {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.footer-menu {
    display: flex;
    justify-content: space-between;
}

.footer-menu-list {
    list-style: none;
}

.footer-menu-list li {
    margin-bottom: 10px;
}

.footer-menu-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-menu-list a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.social-icon {
    --size: 44px;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    display: grid;
    place-items: center;
    line-height: 0;
    background: #0f0f10;
    color: #9C96FF;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
    transition: transform .2s, box-shadow .2s, color .2s;
}

.social-icon svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: currentColor;
}

.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,.25);
    color: #6C63FF;
}

.footer-bottom {
    margin-top: 40px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 100px 0 20px;
    font-size: 0.9rem;
    color: var(--light-text);
}

.breadcrumbs a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--secondary-color);
}

.breadcrumbs span {
    margin: 0 10px;
}

/* Service Pages Specific Styles */
.service-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, rgba(138, 126, 230, 0.1), rgba(215, 120, 227, 0.1));
}

.hero-lead {
    font-size: 1.3rem;
    color: var(--light-text);
    max-width: 800px;
    margin: 20px 0 30px;
}

.hero-features {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.feature {
    color: var(--secondary-color);
    font-weight: 500;
}

/* Media Queries */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 12vw;
    }
    
    .hero-image {
        max-width: 85%;
        max-height: 25vh;
    }
    
    .about-title-main {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu-left, .nav-menu-right {
        display: none;
    }
    
    .header-container {
        justify-content: flex-end;
        border: none;
        padding: 10px 0;
    }
    
    .mobile-theme-container {
        display: block;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .hero {
        padding-top: 120px;
        padding-bottom: 50px;
    }
    
    .hero-title {
        font-size: 12vw;
    }
    
    .hero-image {
        max-width: 95%;
        max-height: 20vh;
    }
    
    .hero-description {
        margin-top: 30px;
        margin-bottom: 30px;
        max-width: 100%;
        font-size: 0.9rem;
        text-align: justify;
    }
    
    .hero-btn {
        display: block;
        width: 80%;
        margin: 0 auto;
        text-align: center;
        justify-content: center;
    }
    
    .about-container {
        flex-direction: column;
        padding: 20px;
    }
    
    .about-content {
        padding-left: 0;
    }
    
    .about-title-main {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
    
    .about-subtitle {
        font-size: 1.2rem;
    }
    
    .services-btn {
        position: static;
        margin-top: 30px;
        width: 100%;
        justify-content: center;
    }
    
    .background-text {
        font-size: 5rem;
    }
    
    .why-us-grid {
        gap: 20px;
        padding-bottom: 20px;
        overflow-x: auto;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }
    
    .why-us-card {
        flex: 0 0 280px;
        height: 280px;
    }
    
    .why-us-card:active .card-inner {
        transform: rotateY(180deg);
    }
    
    .why-us-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .services-grid,
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-item {
        padding: 25px 20px;
        display: flex;
        flex-direction: column;
        min-height: 150px;
    }
    
    .service-text {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0;
        overflow: visible;
    }
    
    .service-item:active {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px var(--shadow-color-hover);
        background-color: var(--card-hover);
    }
    
    .form-title {
        font-size: 2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-menu {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-social {
        justify-content: center;
        margin-top: 20px;
    }
    
    .animated-screen {
        height: 100px;
        border-radius: 40px;
    }
    
    .screen-text {
        font-size: 1.8rem;
        padding-right: 3rem;
    }
    
    /* Cases on mobile */
    .cases-deck {
        position: relative;
        flex-direction: column;
        margin-bottom: 40px;
    }
    
    .cases-tabs {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin-bottom: 20px;
        gap: 10px;
        width: 100%;
    }
    
    .cases-tabs .tab {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        font-size: 0.9rem;
        margin: 0;
        border: 1px solid var(--border-color);
    }
    
    .cases-cards {
        margin-left: 0;
        position: relative;
        padding: 0;
    }
    
    .case-card {
        position: relative;
        display: none;
        width: 100%;
        opacity: 1;
        transform: none;
        margin-bottom: 15px;
        border-radius: 12px;
        padding: 20px 15px;
    }
    
    .case-card.active {
        display: block;
        opacity: 1;
        transform: none;
        z-index: 1;
    }
    
    .case-card-title {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    
    .case-card-desc {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    .case-card-images {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .case-card-image {
        height: 180px;
        width: 100%;
        min-width: unset;
        flex: unset;
    }
    
    .about-border-container {
        padding-top: 40px;
    }
    
    .about-label {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 14vw;
    }
    
    .hero-image {
        max-width: 100%;
        max-height: 18vh;
    }
    
    .hero-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .about-title-main {
        font-size: 1.8rem;
    }
    
    .about-subtitle {
        font-size: 1.1rem;
    }
    
    .about-text, .about-goal {
        font-size: 0.9rem;
    }
    
    .services-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .background-text {
        font-size: 3.5rem;
    }
    
    .why-us-card {
        flex: 0 0 260px;
        height: 260px;
    }
    
    .card-title {
        font-size: 0.9rem;
    }
    
    .card-number {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .card-back-title {
        font-size: 1rem;
    }
    
    .card-back-text {
        font-size: 0.8rem;
    }
    
    .service-item {
        padding: 20px 15px;
    }
    
    .service-title {
        font-size: 1rem;
    }
    
    .service-text {
        font-size: 0.8rem;
    }
    
    .case-card {
        padding: 15px;
    }
    
    .case-card-title {
        font-size: 1.3rem;
    }
    
    .case-card-image {
        height: 160px;
    }
    
    .form-title {
        font-size: 1.8rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-option-item label {
        width: 100%;
        text-align: center;
    }
    
    .form-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .animated-screen {
        height: 80px;
        border-radius: 30px;
    }
    
    .screen-text {
        font-size: 1.4rem;
        padding-right: 2rem;
    }
}

@media (max-width: 375px) {
    .hero-title {
        font-size: 16vw;
    }
    
    .why-us-card {
        flex: 0 0 220px;
        height: 240px;
    }
    
    .card-title {
        font-size: 0.8rem;
    }
    
    .card-back-text {
        font-size: 0.7rem;
    }
    
    .animated-screen {
        height: 70px;
    }
    
    .screen-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-description {
        font-size: 0.9rem;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .lb-prev, .lb-next {
        display: none;
    }
}

/* Print styles */
@media print {
    header, footer, .mobile-menu, .theme-switch {
        display: none;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-color: #000;
        --bg-color: #fff;
        --border-color: #000;
    }
    
    [data-theme="dark"] {
        --text-color: #fff;
        --bg-color: #000;
        --border-color: #fff;
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Skip to main content link for accessibility */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--secondary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-main:focus {
    top: 0;
}