/*
Theme Name: inSoftTaxi Theme
Theme URI: https://insoft.uz
Author: inSoft Solutions
Author URI: https://insoft.uz
Description: Custom WordPress theme for inSoftTaxi.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: insofttaxi
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    /* Base Variables (Default Dark) */
    --primary: #FFC107;
    --primary-hover: #e0a800;
    --dark: #0f0f0f;
    --dark-surface: #1a1a1a;
    --text: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(15, 15, 15, 0.95);
    --hero-overlay: radial-gradient(circle at 50% 10%, rgba(255, 193, 7, 0.15) 0%, transparent 50%);
    --card-bg: #1a1a1a;
    --input-bg: rgba(255, 255, 255, 0.05);
}

/* Light Mode Overrides */
[data-theme="light"] {
    --dark: #f8fafc;
    /* Main Background */
    --dark-surface: #ffffff;
    /* Card/Section Background */
    --text: #1e293b;
    /* Main Text */
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --glass: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.1);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --hero-overlay: radial-gradient(circle at 50% 10%, rgba(255, 193, 7, 0.2) 0%, transparent 60%);
    --card-bg: #ffffff;
    --input-bg: rgba(0, 0, 0, 0.05);
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark);
    color: var(--text);
    scroll-behavior: smooth;
}

/* --- WORDPRESS CORE ALIGNMENTS --- */
.aligncenter {
    display: block;
    margin: 0 auto;
}

.alignleft {
    float: left;
    margin-right: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
}

img.alignright {
    float: right;
    margin: 0 0 1em 1em;
}

img.alignleft {
    float: left;
    margin: 0 1em 1em 0;
}

img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-sizing: border-box;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: inline-block;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
    cursor: pointer;
}

.nav-links a:hover,
.nav-links .current-menu-item a {
    color: var(--primary);
}

.btn {
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    font-size: 0.9rem;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: var(--dark);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* --- PAGE STRUCTURE --- */
/* Changed from display:none to block for Multi-Page Support */
.page-section {
    display: block;
    animation: fadeIn 0.5s ease;
    min-height: 100vh;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* --- HERO SECTION --- */
header.hero-header {
    padding: 160px 50px 100px;
    text-align: center;
    background: var(--hero-overlay);
}

.badge {
    display: inline-block;
    background: rgba(255, 193, 7, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

h1 span {
    background: linear-gradient(120deg, var(--primary), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.mockup-container {
    margin-top: 60px;
    position: relative;
    perspective: 1000px;
}

.dashboard-img {
    width: 80%;
    max-width: 1000px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    transform: rotateX(10deg);
    transition: 0.5s;
}

.dashboard-img:hover {
    transform: rotateX(0deg);
}

/* --- PRODUCTS GRID --- */
.products {
    padding: 100px 50px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.card {
    background: var(--dark-surface);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.card ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.card ul li {
    margin-bottom: 8px;
    color: #ddd;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card ul li::before {
    content: "✓";
    color: var(--primary);
}

/* --- FEATURES/ADVANTAGES STYLES --- */
.features-hero {
    padding: 140px 50px 80px;
    text-align: center;
    background-size: cover;
    background-attachment: fixed;
    margin-bottom: 50px;
    position: relative;
}

.features-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.features-hero>* {
    position: relative;
    z-index: 2;
}


.divider-header {
    text-align: center;
    padding: 80px 20px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.divider-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--text);
}

.divider-header h2 span {
    color: var(--primary);
}

.feature-block {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 100px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 50px;
}

.feature-block.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
}

.feature-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.feature-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.feature-item span {
    color: var(--primary);
    font-size: 1.2rem;
}

/* --- PRICING PAGE STYLES --- */
.pricing-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 0 50px 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    flex: 1;
    min-width: 300px;
    background: var(--dark-surface);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.pricing-card.popular {
    background: linear-gradient(145deg, rgba(255, 193, 7, 0.1), var(--dark-surface));
    border: 2px solid var(--primary);
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card.popular:hover {
    transform: scale(1.08);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--dark);
    padding: 5px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.price-tag {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 20px 0;
}

.price-tag span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li.disabled {
    color: #555;
    text-decoration: line-through;
}

.pricing-features li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
}

.pricing-features li.disabled::before {
    content: "✕";
    color: #555;
}

/* --- FAQ STYLES --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 20px 100px;
}

.faq-item {
    background: var(--dark-surface);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: 0.3s;
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
    transition: 0.3s;
}

.faq-question:hover {
    background: var(--glass);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    color: var(--text-secondary);
    line-height: 1.6;
    opacity: 0;
}

.faq-item.open .faq-answer {
    padding-bottom: 20px;
    max-height: 200px;
    opacity: 1;
}

.faq-toggle {
    font-size: 1.5rem;
    transition: 0.3s;
    color: var(--primary);
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
}

/* --- CONTACT PAGE STYLES --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px;
}

.contact-info-box {
    background: var(--dark-surface);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    height: fit-content;
}

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

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 193, 7, 0.1);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content h4 {
    margin: 0 0 5px 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.info-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.map-container {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 30px;
    border: 1px solid var(--glass-border);
    filter: grayscale(1) invert(1) contrast(0.8);
    /* Dark Map Style */
}

/* --- STATS SECTION --- */
.stats-section {
    background: var(--dark-surface);
    padding: 80px 50px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
    margin-top: 40px;
}

.stat-item h3 {
    font-size: 3rem;
    margin: 0;
    color: var(--primary);
}

.stat-item p {
    color: var(--text-secondary);
    margin-top: 5px;
}

/* --- CTA FORM --- */
.cta-section {
    padding: 100px 50px;
    text-align: center;
}

.form-box {
    background: var(--dark-surface);
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 12px;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Footer */
footer {
    border-top: 1px solid #333;
    padding: 40px 50px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    nav {
        padding: 15px 20px;
    }

    header.hero-header {
        padding-top: 120px;
    }

    .feature-block,
    .feature-block.reverse {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 60px;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }

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

/* --- BLOG STYLES --- */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--dark-surface);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.blog-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.blog-category a {
    color: var(--primary);
    text-decoration: none;
}

.blog-title {
    font-size: 1.4rem;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.blog-title a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.blog-title a:hover {
    color: var(--primary);
}

.blog-excerpt {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    align-self: flex-start;
}

.read-more:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination .page-numbers {
    padding: 10px 15px;
    background: var(--dark-surface);
    border: 1px solid var(--glass-border);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
}

/* Single Post */
.single-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.single-post-header {
    text-align: center;
    margin-bottom: 40px;
}

.single-post-title {
    font-size: 2.5rem;
    margin-top: 10px;
}

.single-post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 40px;
    border: 1px solid var(--glass-border);
}

.single-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ddd;
}

.single-post-content h2,
.single-post-content h3 {
    color: white;
    margin-top: 40px;
}

.single-post-content p {
    margin-bottom: 20px;
}

.single-post-content a {
    color: var(--primary);
}

.single-post-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.post-navigation a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.post-navigation a:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .single-post-title {
        font-size: 2rem;
    }
}