:root {
    --primary: #c81d25;
    --primary-dark: #98161c;
    --primary-light: #ffe5e6;

    --text: #1f2937;
    --text-light: #6b7280;

    --bg: #ffffff;
    --bg-soft: #F2F2F2;

    --border: #e5e7eb;

    --shadow-sm: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-md: 0 12px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;

    --transition: all 0.3s ease;
}

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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    width: min(1150px, 92%);
    margin: 0 auto;
}

.section {
    padding: 90px 0;
}

.light-bg {
    background: var(--bg-soft);
}

.narrow {
    max-width: 720px;
    margin: 0 auto;
}

/* =========================
   HEADER
========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(23, 23, 23,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.topbar {
    height: 8px;
    background: linear-gradient(90deg, var(--primary), #ff4d4d);
}

.nav-wrap {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* =========================
   LOGO
========================= */

.logo {
    display: inline-flex;
    align-items: center;
}

.logo img {
    display: block;
    width: auto;
    max-height: 58px;
}

/* =========================
   NAVIGATION
========================= */

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav a {
    color: var(--text);
    font-weight: 600;
    position: relative;
}

.main-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    border: none;
    background: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text);
}

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

.hero {
    position: relative;
    overflow: hidden;
    padding: 110px 0;
    background:
        radial-gradient(circle at top right, rgba(200,29,37,0.08), transparent 30%),
        linear-gradient(180deg, #fff, #fafafa);
}

.hero::before {
    content: '';
    position: absolute;
    right: -150px;
    top: -150px;
    width: 400px;
    height: 400px;
    background: rgba(200,29,37,0.05);
    border-radius: 50%;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero-text p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    background: #fff;
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================
   PAGE BANNER
========================= */

.page-banner {
    padding: 90px 0 50px;
    background:
        linear-gradient(180deg, rgba(200,29,37,0.07), transparent);
}

.page-banner h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 14px;
}

.page-banner p {
    color: var(--text-light);
    max-width: 700px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 24px;

    border-radius: 999px;

    font-weight: 700;

    transition: var(--transition);

    border: 2px solid transparent;

    cursor: pointer;
}

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

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

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

.btn-secondary,
.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-secondary:hover,
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.full-width {
    width: 100%;
}

/* =========================
   CARDS
========================= */

.cards-2,
.cards-3,
.projects-grid,
.footer-grid,
.split,
.stats-grid {
    display: grid;
    gap: 24px;
}

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

.cards-3 {
    grid-template-columns: repeat(3, 1fr);
}

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

.split {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
}

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

.card,
.project-card,
.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.card:hover,
.project-card:hover,
.stat-card:hover {
    transform: translateY(-5px);
}

.card,
.project-body,
.stat-card {
    padding: 28px;
}

.card h3,
.project-body h3 {
    margin-bottom: 14px;
}

.card p,
.project-body p {
    color: var(--text-light);
}

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

.project-card {
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.project-body small {
    color: var(--text-light);
    display: inline-block;
    margin-top: 14px;
}

.no-image {
    height: 240px;
    display: grid;
    place-items: center;
    background: var(--bg-soft);
    color: var(--text-light);
}

/* =========================
   STATS
========================= */

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

.stat-card strong {
    display: block;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 8px;
}

/* =========================
   FORMS
========================= */

form {
    display: grid;
    gap: 18px;
}

label {
    font-weight: 600;
}

input,
textarea,
select {
    width: 100%;
    padding: 14px 16px;

    border-radius: 14px;

    border: 1px solid var(--border);

    font: inherit;

    transition: var(--transition);

    background: #fff;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(200,29,37,0.12);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

/* =========================
   ALERTS
========================= */

.alert {
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 18px;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

/* =========================
   TABLES
========================= */

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--bg-soft);
}

/* =========================
   ADMIN
========================= */

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-link {
    color: inherit;
}

/* =========================
   ADMIN DASHBOARD
========================= */

.admin-dashboard {
    background:
        radial-gradient(circle at top right,
        rgba(200,29,37,0.08),
        transparent 30%);
}

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

.admin-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(200,29,37,0.1);
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 18px;
    font-size: 0.9rem;
}

.admin-header h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    margin-bottom: 14px;
    font-weight: 800;
}

.admin-header p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 50px;
}

.admin-card {
    position: relative;
    overflow: hidden;

    padding: 34px;

    border-radius: 28px;

    background: rgba(255,255,255,0.85);

    backdrop-filter: blur(14px);

    border: 1px solid rgba(255,255,255,0.4);

    box-shadow: 0 15px 40px rgba(0,0,0,0.08);

    transition: all 0.35s ease;

    color: inherit;
}

.admin-card::before {
    content: '';

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background: linear-gradient(
        90deg,
        var(--primary),
        #ff4d4d
    );
}

.admin-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
}

.admin-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 26px;
}

.admin-icon {
    width: 72px;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 22px;

    font-size: 2rem;

    background: linear-gradient(
        135deg,
        rgba(200,29,37,0.12),
        rgba(200,29,37,0.04)
    );
}

.admin-arrow {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.admin-card:hover .admin-arrow {
    transform: translateX(6px);
}

.admin-card h3 {
    font-size: 1.5rem;
    margin-bottom: 14px;
}

.admin-card p {
    color: var(--text-light);
    line-height: 1.7;
}

.admin-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

@media (max-width: 700px) {

    .admin-card {
        padding: 28px;
    }

    .admin-actions {
        flex-direction: column;
    }
}

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

.site-footer {
    background: #171717f5;
    color: #fff;
    padding-top: 70px;
}

.footer-grid {
    grid-template-columns: repeat(3, 1fr);
}

.site-footer h4 {
    margin-bottom: 16px;
}

.site-footer p,
.site-footer li {
    color: rgba(255,255,255,0.75);
}

.site-footer ul {
    display: grid;
    gap: 10px;
}

.site-footer a {
    color: rgba(255,255,255,0.85);
}

.site-footer a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px;
    text-align: center;
}

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

.fade-in,
.slide-up {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.8s ease;
}

.fade-in.visible,
.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 980px) {

    .hero-grid,
    .cards-2,
    .cards-3,
    .projects-grid,
    .split,
    .footer-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 80px 0;
    }

    .hero-text {
        order: 2;
    }

    .hero-media {
        order: 1;
    }

    .main-nav {
        position: absolute;
        top: 86px;
        left: 0;
        right: 0;

        background: #fff;

        border-bottom: 1px solid var(--border);

        padding: 24px;

        flex-direction: column;
        align-items: flex-start;

        display: none;
    }

    .main-nav.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .logo img {
        max-height: 46px;
    }

    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {

    .section {
        padding: 70px 0;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .btn {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
    }

    .nav-wrap {
        min-height: 78px;
    }

    .logo img {
        max-height: 40px;
    }
}