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

html {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #ffffff;
}

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

ul {
    list-style: none;
}

/* Container */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto ;
}

/* Row & Column */
.row {
    display: flex;
    gap: 20px;
}

.wrap {
    flex-wrap: wrap;
}

.center {
    align-items: center;
}

.space-between {
    justify-content: space-between;
}

.gap {
    gap: 20px;
}

.col-2 {
    flex: 1;
}

.col-3 {
    flex: 1 1 calc(33.333% - 20px);
}

/* Navbar */
.navbar {
    background: #0f172a;
    color: white;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.nav-menu {
    gap: 20px;
}

.nav-menu a {
    color: white;
    font-weight: 500;
}

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

.nav-menu .active {
    color: #38bdf8;
    font-weight: bold;
}

/* Hero */
.hero {
    padding: 80px 0;
    background: #e2e8f0;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #0f172a;
}

.hero p {
    margin-bottom: 20px;
    color: #334155;
}

.hero-box {
    background: white;
    border: 2px dashed #94a3b8;
    padding: 40px;
    text-align: center;
    border-radius: 10px;
}

/* Section */
.section {
    padding: 70px 0;
}

.gray {
    background: #f8fafc;
}

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

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

.section-title p {
    color: #64748b;
}

/* Card */
.card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card h3 {
    margin-bottom: 15px;
    color: #0f172a;
}

/* Portfolio */
.portfolio-box {
    flex: 1 1 calc(33.333% - 20px);
    background: #cbd5e1;
    min-height: 180px;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    color: #0f172a;
}

.portfolio-box h3 {
    font-size: 20px;
    line-height: 1.3;
}

.portfolio-box p {
    font-weight: normal;
    color: #334155;
}

.portfolio-box img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
}

/* Form */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
}

/* Table */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.portfolio-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.portfolio-table th,
.portfolio-table td {
    padding: 14px;
    border: 1px solid #cbd5e1;
    text-align: left;
    vertical-align: top;
}

.portfolio-table th {
    background: #0f172a;
    color: white;
}

.portfolio-table tr:nth-child(even) {
    background: #f8fafc;
}

.table-image {
    max-width: 120px;
    height: auto;
    border-radius: 8px;
}

/* Login */
.login-container {
    display: flex;
    justify-content: center;
}

.login-box {
    width: 100%;
    max-width: 420px;
}

.login-title {
    margin-bottom: 25px;
}

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-weight: bold;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Button */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #0ea5e9;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.btn:hover {
    background: #0284c7;
}

/* Footer */
.footer {
    background: #0f172a;
    color: white;
    padding: 20px 0;
    margin-top: 25px;
    width: 100%;

}

.footer p {
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .row {
        flex-direction: column;
    }

    .col-3,
    .portfolio-box {
        flex: 1 1 100%;
    }

    .hero h1 {
        font-size: 30px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }
}
