@import url('https://fonts.googleapis.com/css2?family=Allura&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Upright:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

:root {
    --primary-color: #d63384; 
    --bg-color: #ffffff;
    --secondary-bg: #f8f9fa;
    --text-dark: #333;
    --text-light: #fff;
    --nav-bg: #dbdbdb;
    --card-bg: #ffffff;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Ranglari */
[data-theme="dark"] {
    --bg-color: #121212;
    --secondary-bg: #1e1e1e;
    --text-dark: #e0e0e0;
    --nav-bg: #1a1a1a;
    --card-bg: #252525;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    transition: var(--transition);
    line-height: 1.6;
}

/* Navbar */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 5%; background: var(--nav-bg);
    box-shadow: var(--shadow); position: fixed;
    width: 100%; height: 80px; top: 0; z-index: 1000;
    transition: var(--transition);
}

.logo_pic { width: 70px; }

.nav-links { display: flex; list-style: none; }
.nav-links li a {
    text-decoration: none; color: var(--text-dark);
    margin-left: 2rem; font-weight: 600;
}

/* Rejim switch tugmasi */
.theme-switch-wrapper { display: flex; align-items: center; margin-left: 20px; }
.theme-switch { display: inline-block; height: 26px; position: relative; width: 50px; }
.theme-switch input { display: none; }
.slider {
    background-color: #ccc; bottom: 0; cursor: pointer; left: 0;
    position: absolute; right: 0; top: 0; transition: .4s;
    display: flex; align-items: center; justify-content: space-between; padding: 0 6px;
}
.slider i { color: #f1c40f; font-size: 12px; }
.slider:before {
    background-color: #fff; bottom: 3px; content: ""; height: 20px;
    left: 3px; position: absolute; transition: .4s; width: 20px;
}
input:checked + .slider { background-color: var(--primary-color); }
input:checked + .slider:before { transform: translateX(24px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1604654894610-df63bc536371?auto=format&fit=crop&w=1950&q=80');
    background-size: cover; background-position: center;
    display: flex; flex-direction: column; justify-content: center;
    align-items: center; text-align: center; color: white;
}
.hero h1 { font-size: clamp(3rem, 8vw, 5rem); font-family: "Allura", cursive; }
.hero p { font-size: 1.4rem; font-family: "Cormorant Upright", serif; margin-bottom: 2rem; max-width: 600px; }

.btn {
    padding: 0.8rem 2.5rem; background: var(--primary-color);
    color: white; text-decoration: none; border-radius: 30px;
    font-weight: 600; border: 2px solid var(--primary-color);
    transition: var(--transition);
}
.btn:hover { background: transparent; color: white; }

/* Services */
.services { padding: 5rem 5%; background: var(--secondary-bg); transition: var(--transition); }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: 2.5rem; font-family: "Nunito", sans-serif; }
.section-title span { color: var(--primary-color); }

.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem;
}
.service-card {
    background: var(--card-bg); border-radius: 10px; overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition); text-align: center;
}
.service-img { width: 100%; height: 200px; object-fit: cover; }
.service-info { padding: 1.5rem; }

/* Contact - YONMA-YON TARTIB */
.contact { padding: 5rem 5%; text-align: center; background: var(--bg-color); transition: var(--transition); }
.contact-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.contact-item {
    background: var(--card-bg); flex: 1 1 350px; padding: 2.5rem;
    box-shadow: var(--shadow); border-radius: 10px; transition: var(--transition);
}
.contact-row { display: flex; justify-content: center; gap: 20px; margin-top: 15px; }
.contact-sub { flex: 1; }
.contact-item i { font-size: 2rem; color: var(--primary-color); margin-bottom: 1rem; }

.btn-outline {
    background: transparent; color: var(--primary-color);
    border: 2.5px solid var(--primary-color); text-decoration: none;
    padding: 6px 15px; border-radius: 5px; display: inline-block;
    font-size: 0.9rem; transition: 0.3s;
}
.btn-outline:hover { background: var(--primary-color); color: white; }

footer {
    background: #111;
    color: #fff;
    padding: 2rem 5%;
}

.footer-content {
    display: flex;
    justify-content: space-between; /* Chap va o'ngga ajratadi */
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.dev-section {
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 3D Animatsiya qismi */
.dev-3d {
    position: relative;
    display: inline-block;
    color:#094e00;
    text-decoration: none;
    perspective: 1000px;
    transition: transform 0.3s;
}

.dev-3d span {
    display: block;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 5px 10px;
    border: 1px solid #072e02;
    border-radius: 4px;
}

/* Sichqoncha ustiga kelganda 3D effekt */
.dev-3d:hover span {
    transform: rotateX(20deg) rotateY(-20deg) translateZ(20px);
    background-color: #094e00;
    color: #fff;
    box-shadow: 
        -5px 5px 0px #094e00,
        -10px 10px 20px rgba(0, 255, 34, 0.5);
}

/* Mobil moslashuv */
@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Burger Menu Animatsiyasi */
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background-color: var(--text-dark); margin: 5px; transition: all 0.3s ease; }

@keyframes navLinkFade {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Mobil */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute; right: 0; height: 92vh; top: 80px;
        background-color: var(--card-bg); display: flex;
        flex-direction: column; align-items: center; width: 60%;
        transform: translateX(100%); transition: transform 0.5s ease-in;
    }
    .nav-links li { opacity: 0; margin: 1.5rem 0; }
    .burger { display: block; }
    .nav-active { transform: translateX(0%); }
    .contact-row { flex-direction: column; gap: 15px; }
}