* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --qizil: #e50914;
    --qora: #141414;
    --oq: #f5f5f5;
    --kok: #1877f2;
    --binafsha: #5865f2;
    --kulrang: #2a2a2a;
    --och-kulrang: #3a3a3a;
}

body {
    background-color: var(--qora);
    color: var(--oq);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
header {
    background: linear-gradient(to right, var(--qora), var(--qizil));
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 2.3rem;
    font-weight: bold;
    color: var(--qizil);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--oq);
    margin-left: 5px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--oq);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    font-size: 1.2rem;
}

.nav-links a:hover {
    color: var(--qora);
    font-weight: 600;
    font-size: 1.2rem;
}

.menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--oq);
}

/* Hero section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1300 300"><path fill="%23e50914" fill-opacity="0.1" d="M0,288L48,272C96,256,192,224,288,197.3C384,171,480,149,576,165.3C672,181,768,235,864,250.7C960,267,1056,245,1152,224C1248,203,1344,181,1392,170.7L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>'),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="500" height="200" viewBox="0 0 500 200"><text x="50%" y="50%" font-family="Arial, sans-serif" font-size="85" font-weight="bold" fill="rgba(232, 0, 0, 0.319)" text-anchor="middle" dominant-baseline="middle">X-DUBBING</text></svg>');
    background-size: cover, 600px;
    background-position: bottom, center;
    background-repeat: repeat, no-repeat;
    animation: wave 10s linear infinite;
    opacity: 0.7;
}

@keyframes wave {
    0% {
        background-position-x: 0, center;
    }

    100% {
        background-position-x: 1000px, center;
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--oq);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--oq);
    animation: fadeInUp 1s ease-out;
}

.btn {
    display: inline-block;
    background-color: var(--qizil);
    color: var(--oq);
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
    animation: fadeInUp 1.2s ease-out;
}

.btn:hover {
    background-color: #ff0a16;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.6);
}

/* About section */
.about {
    padding: 80px 0;
    background-color: var(--qora);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--oq);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--qizil);
    border-radius: 2px;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}


.about-text {
    flex: 1;
    min-width: 300px;
    padding-right: 20px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: perspective(800px) rotateY(10deg);
    transition: transform 0.3s;
}

.about-image:hover img {
    transform: perspective(800px) rotateY(0);
}

/* Team section */
.containere {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.team {
    padding: 50px 0;
    background-color: #1a1a1a;
}

.team-member {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    background: linear-gradient(145deg, var(--kulrang), var(--qora));
    border-radius: 15px;
    overflow: hidden;
    max-width: 900px;
    width: 100%;

    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}



.team-member:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(229, 9, 20, 0.2);
}

.member-image {
    overflow: hidden;
    position: relative;
}

.member-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(20, 20, 20, 0.9), transparent);
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

/* .team-member:hover .member-image img {
transform: scale(1.1);
} */

.member-info {
    padding: 20px;
    text-align: center;
}

.member-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--oq);
}

.member-role {
    color: var(--qizil);
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Social links section */
.social-links {
    padding: 80px 0;
    background-color: var(--qora);
    text-align: center;
}

.social-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 40px;
}

.social-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--oq);
    padding: 20px 15px;
    border-radius: 15px;
    background: linear-gradient(145deg, var(--och-kulrang), var(--kulrang));
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--qizil), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.social-icon:hover::before {
    opacity: 0.2;
}

.social-icon:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.social-icon i {
    font-size: 2.2rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.instagram i {
    color: #e4405f;
}

.telegram i {
    color: #0088cc;
}

.youtube i {
    color: #cd201f;
}

.tiktok i {
    color: #69c9d0;
}

.social-icon span {
    font-weight: 500;
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
}

/* Works section */
.works {
    padding: 80px 0;
    background-color: #1a1a1a;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.work-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    height: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.work-item:hover img {
    transform: scale(1.1);
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(229, 9, 20, 0.9), transparent);
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.work-item:hover .work-overlay {
    transform: translateY(0);
}

/* Footer */
footer {
    background: linear-gradient(to right, var(--qora), var(--qizil));
    padding: 30px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/ssvg" viewBox="0 0 1440 320"><path fill="%23e50914" fill-opacity="0.1" d="M0,288L48,272C96,256,192,224,288,197.3C384,171,480,149,576,165.3C672,181,768,235,864,250.7C960,267,1056,245,1152,224C1248,203,1344,181,1392,170.7L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    animation: wave 10s linear infinite;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--qizil);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    opacity: 0.7;
}

.footer-logo span {
    color: var(--oq);
}

.copyright {
    margin-top: 20px;
    width: 100%;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--qora);
    z-index: 1000;
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
}

.mobile-nav.active {
    right: 0;
    display: block;
}

.mobile-nav-links {
    list-style: none;
}

.mobile-nav-links li {
    margin-bottom: 20px;
}

.mobile-nav-links a {
    color: var(--oq);
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s;
}

.mobile-nav-links a:hover {
    color: var(--qizil);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--oq);
    background: none;
    border: none;
    cursor: pointer;
}

/* Media Queries - Telefon uchun optimallashtirish */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .about-content {
        flex-direction: column;
    }

    .about-text {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .social-icons {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero::before {
        background-size: cover, 400px;
    }

    /* Team section mobil optimallashtirish */
    .team-member {
        flex-direction: column;
        gap: 20px;
        max-width: 100%;
        padding: 15px;
    }

    .member-image {
        width: 70%;
        height: 50%;
        max-width: 300px;
        margin: 0 auto;
    }

    .member-info {
        padding: 15px 10px;
    }

    /* Works section mobil optimallashtirish */
    .works-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .work-item {
        height: 180px;
    }

    /* Social icons mobil optimallashtirish */
    .social-icons {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .social-icon {
        padding: 15px 10px;
    }

    .social-icon i {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    /* Header mobil optimallashtirish */
    header {
        padding: 8px 0;
    }

    .logo {
        font-size: 1.8rem;
    }

    /* Hero section mobil optimallashtirish */
    .hero {
        min-height: 500px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .btn {
        padding: 10px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 1.8rem;
        padding: 0 10px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .social-icons {
        grid-template-columns: 1fr;
    }

    .team-member {
        max-width: 100%;
    }

    .hero::before {
        background-size: cover, 300px;
    }

    /* Kichik ekranlar uchun qo'shimcha optimallashtirish */
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .about,
    .team,
    .works,
    .social-links {
        padding: 50px 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
    }

    .footer-logo {
        font-size: 1.5rem;
    }

    /* Mobile nav optimallashtirish */
    .mobile-nav {
        width: 80%;
        padding: 70px 20px 20px;
    }

    .mobile-nav-links a {
        font-size: 1.1rem;
    }

    /* Team member info mobil optimallashtirish */
    .member-info h3 {
        font-size: 1.3rem;
    }

    .member-info p {
        font-size: 0.9rem;
    }

    /* Work overlay mobil optimallashtirish */
    .work-overlay {
        padding: 15px;
    }

    .work-overlay h3 {
        font-size: 1.1rem;
    }

    .work-overlay p {
        font-size: 0.9rem;
    }
}

/* Juda kichik ekranlar uchun (iPhone 5/SE kabi) */
@media (max-width: 320px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .social-icon {
        padding: 12px 8px;
    }

    .social-icon i {
        font-size: 1.5rem;
    }

    .social-icon span {
        font-size: 0.8rem;
    }

    .logo {
        font-size: 1.3rem;
    }
}

/* Telefonlarda landscape rejimida optimallashtirish */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        height: auto;
        padding: 60px 0;
    }

    .hero-content {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

.iconss {
    border-radius: 50%;
}