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

html { scroll-behavior: smooth; }

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #222;
    line-height: 1.7;
}

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

a { text-decoration: none; }
ul { list-style: none; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.section { padding: 80px 0; }
.light-bg { background: #fff; }

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: #0f172a;
    margin-bottom: 10px;
}

.topbar {
    background: #08152b;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.brand-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-wrap {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 12px;
    padding: 6px;
    overflow: hidden;
}

.site-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text h2 {
    color: #fff;
    font-size: 1.35rem;
}

.brand-text span {
    color: #cbd5e1;
    font-size: .85rem;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.nav-links a {
    color: #fff;
    font-weight: 700;
}

.nav-links a:hover { color: #38bdf8; }

.hero {
    background: linear-gradient(135deg, #081225, #162c4d);
    color: #fff;
    padding: 100px 0 90px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: center;
}

.badge {
    display: inline-block;
    background: rgba(255,255,255,.12);
    padding: 8px 15px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.hero-left h1 {
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text {
    color: #e2e8f0;
    font-size: 1.05rem;
}

.hero-buttons,
.center-btn {
    margin-top: 25px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 13px 22px;
    border-radius: 10px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.primary-btn {
    background: #22c55e;
    color: #fff;
}

.primary-btn:hover { background: #16a34a; }

.secondary-btn {
    background: transparent;
    color: #fff;
    border: 2px solid #38bdf8;
}

.secondary-btn:hover {
    background: #38bdf8;
    color: #081225;
}

.dark-btn {
    color: #0f172a;
    border-color: #0f172a;
}

.dark-btn:hover {
    background: #0f172a;
    color: #fff;
}

.small-btn {
    background: #0ea5e9;
    color: #fff;
    padding: 10px 16px;
    margin-top: 12px;
}

.info-card,
.content-box,
.service-card,
.portfolio-card,
.contact-card,
.stat-card,
.project-info-box,
.admin-login-box,
.admin-wrapper {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.info-card { padding: 30px; }
.content-box { padding: 30px; }

.services-grid,
.portfolio-grid,
.logo-grid,
.contact-grid {
    display: grid;
    gap: 24px;
}

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

.service-card {
    padding: 25px;
}

.service-link {
    color: #16a34a;
    font-weight: 700;
}

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

.portfolio-card {
    overflow: hidden;
}

.portfolio-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.portfolio-content {
    padding: 20px;
}

.logo-grid {
    grid-template-columns: repeat(5, 1fr);
}

.logo-card {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.logo-card img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

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

.contact-card {
    padding: 30px;
    text-align: center;
}

.contact-small {
    font-weight: 700;
    margin-top: 12px;
}

.full-btn { width: 100%; }

.project-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: start;
}

.project-main-image img {
    width: 100%;
    border-radius: 16px;
}

.project-info-box {
    padding: 30px;
}

.project-client-logo img {
    width: 160px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
}

.admin-page {
    background: #eef2f7;
    padding: 40px 0;
}

.admin-login-box,
.admin-wrapper {
    width: 90%;
    max-width: 900px;
    margin: auto;
    padding: 30px;
}

.admin-form {
    display: grid;
    gap: 15px;
}

.admin-form input,
.admin-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

.admin-form textarea {
    min-height: 120px;
}

.admin-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.table-wrap {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

table th,
table td {
    border: 1px solid #e5e7eb;
    padding: 12px;
    text-align: left;
}

.table-thumb {
    width: 100px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.success-msg {
    color: #166534;
    background: #dcfce7;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.error-msg {
    color: #991b1b;
    background: #fee2e2;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.footer {
    background: #08152b;
    color: #cbd5e1;
    text-align: center;
    padding: 24px 0;
}

@media (max-width: 1100px) {
    .services-grid,
    .portfolio-grid,
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content,
    .project-layout {
        grid-template-columns: 1fr;
    }

    .hero-left h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .services-grid,
    .portfolio-grid,
    .logo-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }

    .hero-left h1 {
        font-size: 2rem;
    }
}