/* ==================================================
   FONTS
================================================== */

@font-face {
    font-family: "Pinar";
    src: url("../assets/fonts/Pinar-VF.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================
   RESET
========================================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    direction: rtl;
    font-family: "Pinar", sans-serif;
    background: #fff;
    color: #444;
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

ul,
ol {
    list-style: none;
}

/* ==========================================================
   DESIGN TOKENS
========================================================== */

:root {

    /* Colors */
    --primary: #a81010;
    --primary-dark: #7c0d0d;
    --black: #111;
    --text: #444;
    --text-light: #666;
    --white: #fff;
    --light: #f8f8f8;
    --border: #ececec;

    /* Layout */
    --container: 1200px;

    /* Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;

    /* Shadows */
    --shadow-xs: 0 2px 8px rgba(0, 0, 0, .05);
    --shadow-sm: 0 8px 20px rgba(0, 0, 0, .08);
    --shadow: 0 15px 35px rgba(0, 0, 0, .12);
    --shadow-lg: 0 24px 50px rgba(0, 0, 0, .18);

    /* Transition */
    --transition: .35s ease;

}

/* ==========================================================
   LAYOUT
========================================================== */

.container {
    width: min(100%, var(--container));
    margin-inline: auto;
    padding-inline: 20px;
}

.section {
    padding: 100px 0;
}

/* ==========================================================
   TYPOGRAPHY
========================================================== */

.section-header {
    max-width: 760px;
    margin: 0 auto 70px;
    text-align: center;
}

.section-label {
    display: inline-block;
    color: var(--primary);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: .5px;
    margin-bottom: 18px;
}

.section-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--black);
    line-height: 1.4;
    margin-bottom: 18px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    line-height: 2;
}

/* ==========================================================
   BUTTONS
========================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 34px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition:
        transform var(--transition),
        background var(--transition),
        color var(--transition),
        box-shadow var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    color: var(--white);
    background: var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

/* ==========================================================
   CARD SYSTEM
========================================================== */

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: #ddd;
}

.card-image {
    overflow: hidden;
}

.card-image img {
    width: 100%;
    transition: transform .55s ease;
}

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

.card-body {
    padding: 24px;
}

.card-title {
    color: var(--black);
    font-size: 22px;
    line-height: 1.7;
    margin-bottom: 14px;
}

.card-title span {
    display: block;
    margin-top: 6px;
    color: var(--text-light);
    font-size: 15px;
    font-weight: 400;
}

.card-text {
    color: var(--text-light);
    line-height: 2;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.card-link i {
    transition: transform var(--transition);
}

.card-link:hover {
    color: var(--primary-dark);
}

.card-link:hover i {
    transform: translateX(-6px);
}

/* ==========================================================
   HERO
========================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 820px;
    margin: auto;
    text-align: center;
    animation: fadeUp .8s ease;
}

.hero-logo {
    width: 170px;
    margin: 0 auto 36px;
}

.hero-title {
    color: var(--black);
    font-size: 58px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
}

.hero-services {
    color: var(--primary);
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 28px;
}

.hero-description {
    max-width: 720px;
    margin: 0 auto 44px;
    color: var(--text);
    font-size: 21px;
    line-height: 2;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

/* ==========================================================
   PROJECTS
========================================================== */

.projects {
    background: var(--light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 34px;
}

.project-card {
    display: block;
}

.project-card .card-image img {
    aspect-ratio: 16/10;
    object-fit: cover;
}

.project-card .card-body {
    text-align: center;
}

.project-card .card-title {
    margin-bottom: 0;
}

.section-action {
    margin-top: 60px;
    text-align: center;
}

/* ==========================================================
   SERVICES
========================================================== */

.services {
    background: var(--white);
}

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

.service-card {
    height: 100%;
}

.service-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-icon {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    border-radius: 50%;
    background: #faf4f4;
    color: var(--primary);
    font-size: 28px;
}

.service-card .card-title {
    margin-bottom: 16px;
}

.service-card .card-text {
    flex: 1;
    margin-bottom: 28px;
}

/* ==========================================================
   ABOUT
========================================================== */

.about {
    background: var(--light);
    overflow: hidden;
}

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

.about-text {
    max-width: 640px;
    color: var(--text-light);
    font-size: 17px;
    line-height: 2.2;
    margin-bottom: 18px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin: 36px 0 42px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 14px;
}

.about-feature i {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f4f4f4;
    color: var(--primary);
    font-size: 15px;
    flex-shrink: 0;
}

.about-feature span {
    color: var(--black);
    font-weight: 500;
}

.about-image {
    max-width: 520px;
    width: 100%;
    margin-inline: auto;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

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

/* ==========================================================
   ACHIEVEMENTS
========================================================== */

.achievements {
    background: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.stat-card {
    padding: 42px 25px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-sm);
    border-color: #ddd;
}

.stat-number {
    display: block;
    color: var(--primary);
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 14px;
}

.stat-label {
    color: var(--text-light);
    font-size: 16px;
}


/* ==========================================================
   Contact
========================================================== */

.contact {
    background: var(--light);
    overflow: hidden;
}

.contact-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: .3s;
    background: var(--white);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-light);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(193, 154, 107, .15);
}

.contact-form textarea {
    resize: vertical;
    min-height: 180px;
}

.contact-form .btn {
    align-self: flex-start;
    background-color: var(--primary);
    color: var(--white);

}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    transition: .3s;
}

.info-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.info-item h3 {
    margin-bottom: .75rem;
    font-size: 1.1rem;
}

.info-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ==========================================================
   FOOTER
========================================================== */

footer {
    padding: 50px 0;
    background: #111;
    color: #999;
    text-align: center;
    font-size: 15px;
}

/* ==========================================================
   UTILITIES
========================================================== */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.w-100 {
    width: 100%;
}

.mx-auto {
    margin-inline: auto;
}

.mt-1 {
    margin-top: 20px;
}

.mt-2 {
    margin-top: 40px;
}

.mt-3 {
    margin-top: 60px;
}

.mt-4 {
    margin-top: 80px;
}

.mb-1 {
    margin-bottom: 20px;
}

.mb-2 {
    margin-bottom: 40px;
}

.mb-3 {
    margin-bottom: 60px;
}

.mb-4 {
    margin-bottom: 80px;
}

.py-0 {
    padding-block: 0;
}

.hidden {
    display: none;
}

/* ==========================================================
   SELECTION
========================================================== */

::selection {
    background: var(--primary);
    color: var(--white);
}

/* ==========================================================
   SCROLLBAR (Chrome / Edge)
========================================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f4f4f4;
}

::-webkit-scrollbar-thumb {
    background: #c9c9c9;
    border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==========================================================
   FOCUS STATES
========================================================== */

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(168, 16, 16, .25);
    outline-offset: 4px;
}

/* ==========================================================
   ANIMATIONS
========================================================== */

@keyframes fadeUp {

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

    to {
        opacity: 1;
        transform: none;
    }

}

@keyframes fadeIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}

.fade-up {
    animation: fadeUp .8s ease both;
}

.fade-in {
    animation: fadeIn .8s ease both;
}

/* ==========================================================
   HOVER IMPROVEMENTS
========================================================== */

.card,
.btn,
.about-image img,
.card-image img,
.service-icon {
    will-change: transform;
}

.service-card:hover .service-icon {
    transform: scale(1.08);
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width:992px) {

    .section {
        padding: 80px 0;
    }

    .hero {
        min-height: auto;
        padding: 90px 0;
    }

    .hero-logo {
        width: 145px;
    }

    .hero-title {
        font-size: 46px;
    }

    .hero-services {
        font-size: 26px;
    }

    .hero-description {
        font-size: 20px;
    }

    .section-title {
        font-size: 36px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-image {
        order: -1;
    }

}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width:768px) {

    .section {
        padding: 70px 0;
    }

    .section-header {
        margin-bottom: 45px;
    }

    .hero-logo {
        width: 120px;
        margin-bottom: 28px;
    }

    .hero-title {
        font-size: 34px;
        line-height: 1.5;
    }

    .hero-services {
        font-size: 22px;
    }

    .hero-description {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 320px;
    }

    .section-title {
        font-size: 30px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .projects-grid,
    .services-grid,
    .about-features {
        grid-template-columns: 1fr;
    }

    .card-body {
        padding: 22px;
    }

    .about-grid {
        gap: 45px;
    }

    .about-grid {
        gap: 45px;
    }

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

    .contact-form .btn {
        width: 100%;
    }

}

/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width:480px) {

    .container {

        padding-inline: 16px;

    }

    .hero-title {

        font-size: 28px;

    }

    .hero-services {

        font-size: 19px;

    }

    .hero-description {

        font-size: 17px;

    }

    .service-icon {

        width: 60px;
        height: 60px;

        font-size: 24px;

        margin-bottom: 22px;

    }

    .card-title {

        font-size: 20px;

    }

}

/* ==========================================================
   MOTION PREFERENCES
========================================================== */

@media (prefers-reduced-motion:reduce) {

    * {

        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;

    }

}