/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Black, Gray, Yellow, Orange Theme */
    --primary-gradient: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    --secondary-gradient: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    --accent-gradient: linear-gradient(135deg, #ffeb3b 0%, #ffc107 100%);
    --dark-bg: #000000;
    --dark-card: #1a1a1a;
    --dark-card-hover: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-cyan: #ffc107;
    --accent-purple: #ff9800;
    --accent-pink: #ff5722;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;

    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(255, 152, 0, 0.4);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body.rtl {
    direction: rtl;
    text-align: right;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(10, 14, 39, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    height: 40px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-switcher {
    display: flex;
    gap: 8px;
}

.mobile-lang-switcher {
    display: none;
}

.lang-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--primary-gradient);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition-normal);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 152, 0, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 193, 7, 0.15) 0%, transparent 50%);
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    animation: fadeInLeft 1s ease;
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    animation: fadeInRight 1s ease;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0.2;
    z-index: 1;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-slow);
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(255, 152, 0, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid #ffc107;
}

.btn-secondary:hover {
    background: #ffc107;
    color: #000000;
    transform: translateY(-3px);
}

/* ===== SECTIONS ===== */
section {
    padding: var(--section-padding);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 60px;
}

/* ===== ABOUT SECTION ===== */
.about {
    position: relative;
    background-image: url('images/bratany.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.80) 0%, rgba(0, 0, 0, 0.70) 100%);
    z-index: 0;
}

.about .container {
    position: relative;
    z-index: 1;
}

.about-text {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

.achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.achievement-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: var(--transition-normal);
}

.achievement-card:hover {
    background: var(--dark-card-hover);
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.achievement-icon {
    font-size: 3rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.achievement-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

/* ===== SERVICES SECTION ===== */
.services {
    position: relative;
    background-image: url('images/sunsetmy.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(0, 0, 0, 0.80) 100%);
    z-index: 0;
}

.services .container {
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    background: var(--dark-card-hover);
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== EXPERIENCE TIMELINE ===== */
.experience {
    padding: 60px 0;
}

.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    height: 467px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* Custom scrollbar */
.timeline-container::-webkit-scrollbar {
    width: 8px;
}

.timeline-container::-webkit-scrollbar-track {
    background: var(--dark-card);
    border-radius: 10px;
}

.timeline-container::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
}

.timeline-container::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient);
}

.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-gradient);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease;
}

.timeline-dot {
    position: absolute;
    left: -25px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-gradient);
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.6);
    z-index: 1;
}

.timeline-content {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    transition: var(--transition-normal);
}

.timeline-content:hover {
    background: var(--dark-card-hover);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 152, 0, 0.3);
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #ffc107;
}

.timeline-content h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.timeline-period {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: block;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
    margin: 0;
}

/* ===== PORTFOLIO CAROUSEL ===== */
.portfolio {
    background: var(--dark-card);
}

.portfolio-carousel {
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    opacity: 1;
    animation: fadeIn 0.5s ease;
}

.slide-image {
    position: relative;
    overflow: hidden;
    background: var(--dark-bg);
}

.slide-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.carousel-slide.active:hover .slide-image img {
    transform: scale(1.05);
}

.slide-content {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 4px solid transparent;
    background-image: linear-gradient(var(--dark-card), var(--dark-card)), var(--primary-gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.slide-content h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 152, 0, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #000000;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-normal);
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.carousel-btn:hover {
    background: var(--primary-gradient);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 30px rgba(255, 152, 0, 0.6);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition-normal);
}

.indicator:hover {
    background: rgba(255, 152, 0, 0.5);
    transform: scale(1.2);
}

.indicator.active {
    background: var(--primary-gradient);
    width: 40px;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.5);
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffc107;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
}

.form-group label {
    position: absolute;
    left: 20px;
    top: 15px;
    color: var(--text-secondary);
    pointer-events: none;
    transition: var(--transition-fast);
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: -10px;
    left: 15px;
    font-size: 0.85rem;
    background: var(--dark-bg);
    padding: 0 8px;
    color: #ffc107;
}

.contact-left {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.contact-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-image {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.contact-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-slow);
}

.contact-image:hover {
    box-shadow: 0 0 40px rgba(255, 152, 0, 0.4);
    transform: translateY(-10px);
}

.contact-image:hover img {
    transform: scale(1.05);
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.8rem;
    color: #ffc107;
    margin-top: 5px;
}

.info-item h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-item a,
.info-item p {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.info-item a:hover {
    color: #ffc107;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-primary);
    transition: var(--transition-normal);
}

.social-links a:hover {
    background: var(--primary-gradient);
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(255, 152, 0, 0.5);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-card);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer p {
    color: var(--text-secondary);
    margin: 10px 0;
}

/* ===== TELEGRAM FLOAT ===== */
.telegram-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition-normal);
    animation: pulse 2s infinite;
}

.telegram-float:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(0, 136, 204, 0.7);
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transition: var(--transition-normal);
}

.toast.show {
    bottom: 30px;
}

.toast.success {
    border-left: 4px solid #ffc107;
}

.toast.error {
    border-left: 4px solid #ff5722;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
    }

    50% {
        box-shadow: 0 0 40px rgba(255, 193, 7, 0.9);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 51px;
        left: -100%;
        flex-direction: column;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        padding: 30px;
        gap: 20px;
        transition: var(--transition-normal);
        box-shadow: var(--shadow-lg);
    }

    .nav-right .language-switcher {
        display: none;
    }

    .mobile-lang-switcher {
        display: block;
        margin-top: 20px;
        text-align: center;
    }

    .mobile-lang-switcher .language-switcher {
        justify-content: center;
    }

    .nav-container {
        padding: 10px 15px;
    }

    .logo-text {
        height: 30px;
    }

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

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-name {
        font-size: 3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .timeline-container {
        height: 400px;
        padding: 15px;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-dot {
        left: -20px;
        width: 10px;
        height: 10px;
    }

    .timeline-content {
        padding: 15px;
    }

    .timeline-content h3 {
        font-size: 1rem;
    }

    .timeline-content h4 {
        font-size: 0.9rem;
    }

    .timeline-period {
        font-size: 0.8rem;
    }

    .timeline-content p {
        font-size: 0.85rem;
    }

    .carousel-slide.active {
        grid-template-columns: 1fr;
    }

    .slide-image img {
        height: 350px;
    }

    .slide-content {
        padding: 40px 30px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

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

@media (max-width: 600px) {
    .hero-name {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

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

    .slide-image img {
        height: 250px;
    }

    .slide-content {
        padding: 30px 20px;
    }

    .slide-content h3 {
        font-size: 1.5rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}

/* ===== TRUSTED BY — временно скрыто (раскомментировать когда будут логотипы) ===== */
/* .trusted-by { display: none; } */
/* ===== TRUSTED BY — 3 бегущие ленты ===== */
.trusted-by {
    display: none;
    padding: 32px 0 40px;
    background: #000000;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}

.trusted-by-label {
    text-align: center;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    margin-bottom: 28px;
    display: block;
}

/* Одна лента-строка */
.logos-strip {
    width: 100%;
    overflow: hidden;
    margin-bottom: 12px;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* Контейнер с логотипами (бесконечная прокрутка) */
.logos-track {
    display: flex;
    gap: 12px;
    width: max-content;
}

/* Направление: вправо */
.strip-right .logos-track {
    animation: scrollRight 28s linear infinite;
}

/* Направление: влево */
.strip-left .logos-track {
    animation: scrollLeft 28s linear infinite;
}

/* Медленнее (3-я лента) */
.strip-slow .logos-track {
    animation-duration: 40s;
}

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

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

/* Пауза при наведении */
.logos-strip:hover .logos-track {
    animation-play-state: paused;
}

/* Один элемент в ленте */
.logo-item {
    height: 50px;
    min-width: 120px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 4px;
    background: #111111;
    transition: border-color 0.25s ease;
}

.logo-item img {
    max-height: 30px;
    max-width: 110px;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.55);
    transition: filter 0.25s ease;
}

.logo-item:hover img {
    filter: grayscale(0%) brightness(1);
}

.logo-item:hover {
    border-color: rgba(255, 193, 7, 0.25);
}

.logo-placeholder span {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.2);
    white-space: nowrap;
    text-transform: uppercase;
}

/* ===== WORKFORCE SECTION ===== */
.workforce {
    padding: 100px 0;
    background: #0d0d0d;
    border-top: 1px solid rgba(255,255,255,0.06);
    position: relative;
}

.workforce::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 50% 60% at 80% 50%, rgba(255,193,7,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.workforce-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
}

.workforce-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 560px;
}

.workforce-teams h3 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 18px;
}

.workforce-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
}

.workforce-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-primary);
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-left: 2px solid var(--accent-cyan);
    border-radius: 0 4px 4px 0;
    transition: background 0.25s ease;
}

.workforce-list li:hover {
    background: rgba(255,193,7,0.06);
}

.workforce-list li i {
    color: var(--accent-cyan);
    font-size: 0.7rem;
    flex-shrink: 0;
}

.workforce-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.workforce-details p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,0.1);
}

/* Right column — stats + icons */
.workforce-stats-col {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.workforce-stat {
    text-align: center;
    padding: 32px 24px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.workforce-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
}

.workforce-stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.workforce-stat-number span {
    font-size: 2rem;
}

.workforce-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.workforce-icons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.workforce-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 6px;
    text-align: center;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.workforce-icon-item:hover {
    border-color: rgba(255,193,7,0.25);
    background: rgba(255,193,7,0.04);
}

.workforce-icon-item i {
    font-size: 1.4rem;
    color: var(--accent-cyan);
    opacity: 0.85;
}

.workforce-icon-item span {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.4;
    text-align: center;
}

.workforce-regions {
    text-align: center;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 6px;
    background: rgba(255,255,255,0.02);
}

.workforce-regions p {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 968px) {
    .workforce-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .workforce-stat-number {
        font-size: 2.4rem;
    }
}

/* ===== AVAILABILITY SECTION ===== */
.availability {
    padding: 100px 0;
    background: #0a0a0a;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.avail-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.avail-status-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.avail-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4CAF50;
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.6);
    animation: pulseGreen 2s ease infinite;
}

@keyframes pulseGreen {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.3); }
}

.avail-status-block p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.avail-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.avail-location i {
    color: var(--accent-cyan);
}

.avail-regions h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.avail-regions ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.avail-regions li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.avail-regions li:last-child {
    border-bottom: none;
}

.region-flag {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.avail-regions li strong {
    color: var(--text-primary);
    font-weight: 600;
    margin-right: 2px;
}

/* ===== TELEGRAM POPUP ===== */
.tg-popup {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 290px;
    background: var(--dark-card);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6);
    z-index: 998;
    opacity: 0;
    transform: translateY(16px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.tg-popup.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.tg-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.35);
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.tg-popup-close:hover { color: #ffffff; }

.tg-popup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tg-popup-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(0,136,204,0.5);
}

.tg-popup-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.tg-popup-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tg-popup-meta strong {
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
}

.tg-popup-online {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.73rem;
    color: #4CAF50;
}

.tg-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4CAF50;
    flex-shrink: 0;
    animation: pulseGreen 2s ease infinite;
}

.tg-popup-text {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 14px;
}

.tg-popup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 0;
    background: #0088cc;
    color: #ffffff;
    border-radius: 6px;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.tg-popup-btn:hover { background: #006fa8; }

@media (max-width: 600px) {
    .avail-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .tg-popup {
        width: calc(100vw - 40px);
        right: 20px;
    }
}

/* RTL Support */
body.rtl .timeline {
    padding-left: 0;
    padding-right: 40px;
}

body.rtl .timeline::before {
    left: auto;
    right: 15px;
}

body.rtl .timeline-dot {
    left: auto;
    right: -25px;
}

body.rtl .timeline-content:hover {
    transform: translateX(-5px);
}

body.rtl .nav-link::after {
    left: auto;
    right: 0;
}