/* ============================================= */
/* HPL - Highwaywide Projects Pvt. Ltd. */
/* Complete Responsive CSS - Replace Full File */
/* ============================================= */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: #003087;
    color: white;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header img {
    height: 50px;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
}

nav a:hover {
    color: #ff6b00;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/hero-bg.jpg') center/cover no-repeat;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-top: 80px; /* Header ke liye space */
}

.hero-text h1 {
    font-size: 3.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 25px;
}

.btn {
    background: #ff6b00;
    color: white;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s;
}

.btn:hover {
    background: #e55a00;
}

.btn.small {
    padding: 10px 20px;
    font-size: 0.95rem;
}

/* Grid System */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Card Design */
.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

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

.card h3 {
    padding: 15px 15px 8px;
    color: #003087;
    font-size: 1.3rem;
}

.card p {
    padding: 0 15px 15px;
    font-size: 0.95rem;
    color: #555;
}

/* Sections */
section {
    padding: 70px 0;
}

.services, .projects {
    background: white;
}

.services h2, .projects h2 {
    text-align: center;
    color: #003087;
    margin-bottom: 40px;
    font-size: 2.2rem;
}

/* Project Status Badges */
.status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    margin: 8px 0;
}

.status.completed { background: #d4edda; color: #155724; }
.status.ongoing   { background: #fff3cd; color: #856404; }
.status.new       { background: #d1ecf1; color: #0c5460; }

/* Footer */
footer {
    background: #002050;
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 80px;
}

footer p {
    margin: 8px 0;
    font-size: 1rem;
}

footer a {
    color: #ff6b00;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-text h1 { font-size: 2.2rem; }
    .hero-text p { font-size: 1.1rem; }
    nav { gap: 12px; font-size: 0.9rem; }
    header .container { flex-direction: column; text-align: center; }
    nav { margin-top: 10px; }
}

/* Admin Panel (Optional) */
.admin-nav {
    background: #003087;
    padding: 15px;
    color: white;
}

.admin-nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
}

.form-container {
    max-width: 700px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

input, select, textarea, button {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

button {
    background: #ff6b00;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border: none;
}

button:hover {
    background: #e55a00;
}

.success { color: green; text-align: center; }
.error { color: red; text-align: center; }

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

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

th {
    background: #f0f0f0;
    color: #003087;
}