/* Fonts */
@font-face {
    font-family: 'MainFont';
    src: url('../fonts/main.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nastaliq';
    src: url('../fonts/nast.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables */
:root {
    --bg: #fefefe;
    --bg-alt: #f0f4f8;
    --bg-card: #ffffff;
    --text: #1a202c;
    --text-soft: #5a6a7a;
    --accent: #1a365d;
    --gold: #b7791f;
    --gold-light: #ecc94b;
    --border: #e2e8f0;
    --gradient: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
}

[data-theme="dark"] {
    --bg: #0d1321;
    --bg-alt: #1a202c;
    --bg-card: #1e2533;
    --text: #f7fafc;
    --text-soft: #a0aec0;
    --accent: #90cdf4;
    --gold: #ecc94b;
    --gold-light: #f6e05e;
    --border: #2d3748;
    --gradient: linear-gradient(135deg, #63b3ed 0%, #90cdf4 100%);
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'MainFont', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    transition: background 0.4s, color 0.4s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1,
h2,
h3,
h4 {
    font-family: 'Nastaliq', serif;
    font-weight: normal;
}

/* Header */
.header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 15px;
    font-family: 'MainFont', sans-serif;
}

.logo-text span {
    font-size: 12px;
    color: var(--text-soft);
}

/* Navigation */
.nav-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-alt);
    padding: 5px;
    border-radius: 50px;
    border: 1px solid var(--border);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-soft);
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s;
}

.nav-link svg {
    width: 16px;
    height: 16px;
}

.nav-link:hover {
    color: var(--text);
}

.nav-link.active {
    color: #fff;
    background: var(--gradient);
}

[data-theme="dark"] .nav-link.active {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
}

.nav-link.active svg {
    color: var(--gold-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.call-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gold);
    display: grid;
    place-items: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s;
}

.call-btn:hover {
    transform: scale(1.1);
}

.call-btn svg {
    width: 20px;
    height: 20px;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: transparent;
    cursor: pointer;
    display: grid;
    place-items: center;
    position: relative;
    transition: border-color 0.2s;
}

.theme-toggle:hover {
    border-color: var(--gold);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    color: var(--text-soft);
    position: absolute;
    transition: opacity 0.3s;
}

.theme-toggle .sun-icon {
    opacity: 1;
}

.theme-toggle .moon-icon {
    opacity: 0;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    opacity: 0;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    opacity: 1;
}

/* Hero */
.hero {
    padding: 60px 0 50px;
    text-align: center;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: var(--gradient);
    opacity: 0.04;
    transform: rotate(-12deg);
    pointer-events: none;
}

[data-theme="dark"] .hero::before {
    opacity: 0.08;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 50%;
    height: 200%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    opacity: 0.04;
    transform: rotate(12deg);
    pointer-events: none;
}

[data-theme="dark"] .hero::after {
    opacity: 0.08;
}

.hero-content {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin: 0 auto 24px;
    display: block;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient);
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 50px;
    margin-bottom: 16px;
    line-height: 1.5;
    padding-top: 16px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 34px;
    margin-bottom: 10px;
    padding-top: 12px;
    line-height: 1.5;
    font-family: 'Nastaliq', serif;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle strong {
    font-family: 'Nastaliq', serif;
    font-size: 34px;
}

.hero-description {
    color: var(--text-soft);
    font-size: 16px;
    margin-top: 16px;
    line-height: 1.9;
}

/* Services */
.services {
    padding: 80px 0;
    background: var(--bg-alt);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 38px;
    margin-bottom: 12px;
    color: var(--text);
}

.section-subtitle {
    color: var(--text-soft);
    font-size: 16px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s;
}

[data-theme="dark"] .service-card::before {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-alt);
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    color: var(--gold);
    border: 2px solid var(--border);
    transition: all 0.3s;
}

.service-card:hover .service-icon {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
}

[data-theme="dark"] .service-card:hover .service-icon {
    background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
}

.service-icon svg {
    width: 26px;
    height: 26px;
}

.service-card h4 {
    font-size: 16px;
    font-family: 'MainFont', sans-serif;
    margin-bottom: 8px;
    color: var(--text);
}

.service-card p {
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.7;
}

/* Contact */
.contact {
    padding: 80px 0;
    background: var(--bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.contact-card {
    background: var(--bg-alt);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 28px 16px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.contact-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

.contact-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    color: #fff;
    background: var(--gradient);
}

[data-theme="dark"] .contact-icon {
    background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
}

.contact-icon.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.contact-icon.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #229ed9 100%);
}

.contact-icon.location {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
}

.contact-icon.mobile {
    background: linear-gradient(135deg, #805ad5 0%, #6b46c1 100%);
}

.contact-icon.postal {
    background: linear-gradient(135deg, #dd6b20 0%, #c05621 100%);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-card h4 {
    font-size: 15px;
    font-family: 'MainFont', sans-serif;
    margin-bottom: 10px;
    color: var(--text);
}

.contact-card p {
    font-size: 14px;
    color: var(--text-soft);
    direction: ltr;
    unicode-bidi: plaintext;
    margin-bottom: 2px;
}

/* Footer */
.footer {
    background: var(--accent);
    color: #fff;
    padding: 36px 0;
    text-align: center;
}

[data-theme="dark"] .footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 15px;
}

.footer-logo svg {
    width: 22px;
    height: 22px;
    color: var(--gold-light);
}

.copyright {
    font-size: 13px;
    opacity: 0.8;
}

/* Floating Call */
.floating-call {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 60px;
    height: 60px;
    background: var(--gold);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    z-index: 99;
    transition: transform 0.2s;
    border: 3px solid var(--bg);
}

.floating-call:hover {
    transform: scale(1.1);
}

.floating-call svg {
    width: 26px;
    height: 26px;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        justify-content: center;
        gap: 10px;
    }

    .logo-section {
        display: none;
    }

    .nav-pill {
        width: auto;
    }

    .nav-link {
        padding: 10px 16px;
        font-size: 13px;
    }

    .nav-link span {
        display: none;
    }

    .nav-link svg {
        width: 20px;
        height: 20px;
    }

    .hero {
        padding: 40px 0 36px;
    }

    .hero-logo {
        width: 130px;
        height: 130px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-subtitle strong {
        font-size: 20px;
    }

    .services,
    .contact {
        padding: 50px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .floating-call {
        bottom: 20px;
        left: 20px;
        width: 54px;
        height: 54px;
    }
}

@media (max-width: 480px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}