/* AbobaTeam Professional Landing Styles */

:root {
    --primary-color: #000000;
    --secondary-color: #1a1a1a;
    --accent-color: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --border-color: #333333;
    --success-color: #00a878;
    --warning-color: #ffa500;
    --danger-color: #ff4444;
    --gradient-dark: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    --gradient-accent: linear-gradient(135deg, #2d2d2d 0%, #404040 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--primary-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 200;
}

h2 {
    font-size: 2.5rem;
    font-weight: 300;
}

h3 {
    font-size: 2rem;
}

p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Navigation */
.navbar {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary) !important;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 300;
    letter-spacing: 0.05em;
    padding: 0.5rem 1.5rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--text-primary) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 1px;
    background: var(--text-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    transform: scaleX(1);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );
    pointer-events: none;
}

.hero-title {
    font-size: 4rem;
    font-weight: 200;
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 3rem;
}

/* Buttons */
a.btn-professional,
.btn-professional {
    background: transparent !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--text-primary) !important;
    padding: 1rem 2.5rem !important;
    font-weight: 300 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    display: inline-block !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

a.btn-professional::before,
.btn-professional::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--text-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

a.btn-professional:hover,
a.btn-professional:focus,
a.btn-professional:active,
a.btn-professional:visited:hover,
.btn-professional:hover,
.btn-professional:focus,
.btn-professional:active {
    color: var(--primary-color) !important;
    border-color: var(--text-primary) !important;
    text-decoration: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

a.btn-professional:hover::before,
.btn-professional:hover::before {
    left: 0;
}

/* Убираем все Bootstrap стили для ссылок с этим классом */
a.btn-professional:link,
a.btn-professional:visited {
    text-decoration: none !important;
}

/* Фикс для кнопок в section-accent */
.section-accent a.btn-professional,
.section-accent .btn-professional {
    position: relative !important;
    overflow: hidden !important;
    background: transparent !important;
    z-index: 1 !important;
}

.section-accent a.btn-professional::before,
.section-accent .btn-professional::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: var(--text-primary) !important;
    transition: left 0.3s ease !important;
    z-index: -1 !important;
}

.section-accent a.btn-professional:hover::before,
.section-accent .btn-professional:hover::before {
    left: 0 !important;
}

.section-accent a.btn-professional:hover,
.section-accent .btn-professional:hover {
    color: var(--primary-color) !important;
}

.btn-professional-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--text-secondary);
    padding: 1rem 2.5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-professional-outline:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-dark {
    background: var(--primary-color);
}

.section-accent {
    background: var(--secondary-color);
}

.section-title {
    font-size: 3rem;
    font-weight: 200;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
    font-weight: 300;
}

/* Service Cards */
.service-card {
    background: var(--gradient-accent);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--text-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--text-primary);
}

.service-icon {
    width: 60px;
    height: 60px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    border-color: var(--text-primary);
    background: var(--text-primary);
    color: var(--primary-color);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.service-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Approach Section */
.approach-item {
    padding: 2rem;
    border-left: 1px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease;
}

.approach-item::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--text-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.approach-item:hover::before {
    transform: scaleY(1);
}

.approach-number {
    font-size: 3rem;
    font-weight: 100;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-family: 'Georgia', serif;
}

.approach-title {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.approach-description {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Tools Section */
.tools-section {
    background: var(--primary-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.tools-mockup {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.tools-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--accent-color);
    border-bottom: 1px solid var(--border-color);
}

/* Contact Section */
.contact-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-info:hover {
    padding-left: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-info:hover .contact-icon {
    background: var(--text-primary);
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--primary-color);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 200;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.8s ease forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0 !important;
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .hero-animation {
        height: 250px;
        margin-top: 2rem;
    }
    
    .code-animation {
        width: 250px;
        height: 200px;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    h1, .hero-title {
        font-size: 2.5rem;
    }
    
    h2, .section-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .btn-professional,
    .btn-professional-outline {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .approach-item {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .tools-mockup {
        margin-top: 2rem;
    }
    
    .contact-info {
        padding: 1rem 0;
    }
}

@media (max-width: 576px) {
    h1, .hero-title {
        font-size: 2rem;
    }
    
    h2, .section-title {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-professional,
    .btn-professional-outline {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .approach-number {
        font-size: 2rem;
    }
    
    .footer-brand {
        font-size: 1.25rem;
    }
    
    .hero-animation {
        display: none;
    }
}

/* Subtle Grid Pattern */
.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Minimal Loader */
.loader {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Navbar Toggler */
.navbar-toggler {
    border: 1px solid var(--border-color);
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    border-color: var(--text-primary);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Animation */
.hero-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.code-animation {
    width: 300px;
    height: 300px;
    border: 1px solid var(--border-color);
    padding: 2rem;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
}

.code-line {
    height: 2px;
    background: var(--text-secondary);
    margin-bottom: 1rem;
    border-radius: 1px;
    opacity: 0;
    animation: typewriter 4s infinite;
}

.code-line.short {
    width: 60%;
}

.code-line.medium {
    width: 80%;
}

.code-line.long {
    width: 100%;
}

.code-line:nth-child(1) {
    animation-delay: 0s;
    width: 90%;
}

.code-line:nth-child(2) {
    animation-delay: 0.5s;
}

.code-line:nth-child(3) {
    animation-delay: 1s;
    width: 100%;
}

.code-line:nth-child(4) {
    animation-delay: 1.5s;
}

.code-line:nth-child(5) {
    animation-delay: 2s;
    width: 85%;
}

.code-line:nth-child(6) {
    animation-delay: 2.5s;
}

.code-line:nth-child(7) {
    animation-delay: 3s;
}

.code-line:nth-child(8) {
    animation-delay: 3.5s;
    width: 70%;
}

@keyframes typewriter {
    0% {
        width: 0;
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.7;
    }
}