/* -------------------------------------------------------------
   M/S ATTAR CONSTRUCTIONS - MASTER STYLESHEET FRAMEWORK
------------------------------------------------------------- */

:root {
    --primary: #0284c7;
    --primary-hover: #0369a1;
    --primary-light: rgba(2, 132, 199, 0.08);
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-500: #64748b;
    --slate-100: #f1f5f9;
    --bg-smooth: #f8fafc;
    --border-color: #e2e8f0;
    --radius-sm: 6px;
    --radius-md: 12px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(2, 132, 199, 0.12);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', sans-serif !important;
    color: var(--slate-700);
    background-color: var(--bg-smooth);
    overflow-x: hidden;
}

/* Menu Text Optimization Fixes [Matches Screenshot 2026-07-06 141210.png] */
.navbar-light .navbar-nav .nav-link {
    color: var(--slate-800) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 24px 14px !important;
    transition: var(--transition-smooth);
    white-space: nowrap !important; /* Prevents menu breaking states onto dual lines */
}

.navbar-light .navbar-nav {
    display: flex;
    flex-wrap: nowrap !important; 
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

/* Fluid helper blocks */
.bg-smooth { background-color: var(--bg-smooth) !important; }
.bg-slate { background-color: var(--slate-900) !important; }
.text-slate { color: var(--slate-900) !important; }
.tracking-wider { letter-spacing: 0.08em !important; }
.max-w-600 { max-width: 600px; margin: 0 auto; }
.max-w-700 { max-width: 700px; }
.z-index-2 { z-index: 2; position: relative; }

/* Themes & Button Actions */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }

.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--primary);
    color: #ffffff !important;
}

/* Exact One Viewport Screen Height Logic [Matches Screenshot 2026-07-06 142137.jpg] */
.vh-100 {
    height: 100vh !important;
    min-height: 650px;
}

.object-cover {
    object-fit: cover;
}

.carousel-caption {
    background: linear-gradient(rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.8)) !important;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}

/* Modern Portfolio Showcase Grid Matrix */
.modern-product-card {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    aspect-ratio: 4 / 5;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.category-badge {
    position: absolute;
    top: 1rem; left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--slate-800);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    z-index: 3;
    text-transform: uppercase;
}

.product-img-wrapper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 65%;
    overflow: hidden;
}

.product-img-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-info-overlay {
    position: relative;
    background: #ffffff;
    padding: 1.25rem;
    width: 100%;
    height: 38%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-top: 1px solid var(--slate-100);
    z-index: 2;
    transition: var(--transition-smooth);
}

.product-title {
    font-size: 1.05rem !important;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 0.25rem;
}

.product-desc {
    font-size: 0.8rem !important;
    color: var(--slate-500);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.action-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: auto;
    display: block;
    opacity: 0;
    transform: translateY(8px);
    transition: var(--transition-smooth);
}

/* Portfolio Highlight Effects */
.modern-product-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg) !important;
}

.modern-product-card:hover .product-img-wrapper img {
    transform: scale(1.06);
}

.modern-product-card:hover .product-info-overlay {
    height: 48%;
}

.modern-product-card:hover .action-link {
    opacity: 1;
    transform: translateY(0);
}

/* Capabilities Panels [Matches Screenshot 2026-07-06 142504.png] */
.icon-circle {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.feature-box {
    background: #ffffff;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    transition: var(--transition-smooth);
}

.feature-box:hover {
    border-color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.service-panel-card {
    border: 1px solid var(--border-color) !important;
    transition: var(--transition-smooth);
}

.service-panel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary) !important;
}

.panel-img-box {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

/* Gallery Deployments Layout Engine */
.gallery-item {
    height: 280px;
    position: relative;
    cursor: pointer;
}

.gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.9));
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.absolute-bg-blur {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

/* Clean Corporate Brand Display Card Grid [Matches Screenshot 2026-07-06 142555.png] */
.brand-logo-card {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm);
    height: 95px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    transition: var(--transition-smooth);
}

.brand-logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.2px;
}

.text-teal { color: #0d9488 !important; }
.text-blue { color: #1d4ed8 !important; }

.shadow-sm-hover:hover {
    border-color: var(--primary) !important;
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-2px);
}

/* Contact Inputs & Global Fields */
.form-control {
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
}

.form-control:focus {
    box-shadow: none !important;
    border-color: var(--primary) !important;
}

/* Clean Slate Footer Baseline */
.footer {
    background-color: var(--slate-900) !important;
    color: var(--slate-500);
}

.footer .text-white {
    color: #ffffff !important;
}

.footer border-secondary {
    border-color: #1e293b !important;
}