/* ============================================
   ADENCY.ONLINE - MARKETING CHATBOT WEBSITE
   Design inspired by adency.pro
   ============================================ */

/* CSS Variables */
:root {
    --primary-color: #E2F54B;
    --primary-dark: #A8D700;
    --secondary-color: #000000;
    --text-light: #FFFFFF;
    --text-dark: #000000;
    --border-color: #DE4848;
    --bg-light: #FFFFFF;
    --bg-dark: #000000;
    --accent-yellow: #E2F54B;
    --gray-light: #F5F5F5;
    --gray-medium: #E0E0E0;
    --gray-dark: #333333;
    --transition: all 0.3s ease;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #ffffff;
    border-bottom: 1px solid #eaeaea;

    padding: 22px 0; /* больше воздуха сверху и снизу */

    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* список ссылок */
.nav-links {
    display: flex;
    align-items: center;
    gap: 42px;

    list-style: none;
    margin: 0;
    padding: 0;
}

/* ссылки */
.nav-links a {
    text-decoration: none;
    color: #333;

    font-size: 16px;
    font-weight: 600;

    position: relative;
    transition: color 0.25s ease;
}

/* hover
.nav-links a:hover {
    color: #E2F54B;
} */

/* underline animation */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;

    width: 0;
    height: 2px;

    background: #E2F54B;
    transition: width 0.25s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--gray-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(204, 255, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(204, 255, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Logo Container */
.logo-container {
    margin-bottom: 40px;
    animation: float 3s ease-in-out infinite;
}

.logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.nav-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.hero-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Hero Title */
.hero-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
    letter-spacing: -2px;
}

.hero-title .highlight {
    background: linear-gradient(120deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding: 0 10px;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 20px;
    color: var(--gray-dark);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* ============================================
   QUICK ACTIONS
   ============================================ */

.quick-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.quick-action-btn {
    padding: 12px 24px;
    background-color: var(--bg-dark);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.quick-action-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(204, 255, 0, 0.3);
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
    padding: 100px 20px;
    background-color: var(--bg-light);
}

.services h2 {
    font-size: 48px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.section-title {
    font-size: 48px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-dark);
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: var(--gray-dark);
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   SERVICE CARDS WITH TILT EFFECT
   ============================================ */

.service-card {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--gray-light) 100%);
    border: 2px dashed var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(204, 255, 0, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(204, 255, 0, 0.2);
}

.service-icon {
    font-size: 60px;
    margin-bottom: 20px;
    display: block;
    animation: bounce 2s ease-in-out infinite;
}

.service-card:nth-child(2) .service-icon {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) .service-icon {
    animation-delay: 0.4s;
}

.service-card:nth-child(4) .service-icon {
    animation-delay: 0.6s;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-description {
    font-size: 15px;
    color: var(--gray-dark);
    margin-bottom: 25px;
    line-height: 1.6;
}

.service-link {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    position: relative;
}

.service-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--border-color);
    transition: var(--transition);
}

.service-link:hover::after {
    width: 100%;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    padding: 100px 20px;
    background:
        radial-gradient(circle at top center, rgba(204, 255, 0, 0.08) 0%, transparent 35%),
        var(--bg-dark);
    color: var(--text-light);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about h2 {
    font-size: 48px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: var(--text-light);
}

.about > .about-container > p {
    max-width: 760px;
    margin: 0 auto 60px;
    font-size: 18px;
    line-height: 1.8;
    text-align: center;
    color: rgba(255, 255, 255, 0.82);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.feature {
    position: relative;
    padding: 28px 24px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.03) 100%);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.feature::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(204,255,0,0.12), transparent 45%);
    pointer-events: none;
}

.feature:hover {
    transform: translateY(-6px);
    border-color: rgba(204,255,0,0.45);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.feature h4 {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #fff;
    line-height: 1.4;
}

.feature p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.78);
}

.feature-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 14px;
    background: rgba(204,255,0,0.12);
    box-shadow: inset 0 0 0 1px rgba(204,255,0,0.18);
}

@media (max-width: 768px) {
    .about {
        padding: 80px 20px;
    }

    .about h2 {
        font-size: 36px;
    }

    .about > .about-container > p {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .about-features {
        gap: 18px;
    }

    .feature {
        padding: 24px 20px;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border-top: 2px dashed var(--border-color);
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 15px;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 36px;
    }

    .nav-menu {
        gap: 20px;
    }

    .nav-menu a {
        font-size: 14px;
    }

    .search-container {
        padding: 30px 20px;
    }

    .input-wrapper {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
    }

    .quick-actions {
        flex-direction: column;
    }

    .quick-action-btn {
        width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .logo {
        width: 50px;
        height: 50px;
    }

    .hero {
        padding: 50px 20px;
    }

    .services {
        padding: 60px 20px;
    }

    .about {
        padding: 60px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .section-title {
        font-size: 28px;
    }

    .nav-brand .logo-link {
        font-size: 20px;
    }

    .nav-menu {
        gap: 15px;
    }

    .search-input {
        font-size: 14px;
        padding: 12px 16px;
    }

    .search-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .service-icon {
        font-size: 48px;
    }

    .service-title {
        font-size: 20px;
    }

    .service-description {
        font-size: 14px;
    }
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: slideInUp 0.6s ease-out forwards;
}

.service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Smooth scrolling for all browsers */
@supports (scroll-behavior: smooth) {
    html {
        scroll-behavior: smooth;
    }
}
