/* Color Palette definitions matching the precise UI Theme */
:root {
    --bg-dark: #090b0c;          
    --bg-dark-cards: #111416;    
    --brand-emerald: #00e699;    
    --brand-emerald-hover: #00bf7f;
    --text-muted: #828a8f;
    --border-dark: #1f2428;
}

/* Base Styles & Typography Overrides */
body {
    background-color: var(--bg-dark);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #ffffff;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to right, rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center;
}

/* Premium Typography Scaling Override */
h1, .display-3 {
    font-size: 3.25rem !important; /* Balanced hero font sizing */
    letter-spacing: -0.03em !important;
    line-height: 1.15;
}

h2, .display-5 {
    font-size: 2rem !important; /* Sleeker section headers */
    letter-spacing: -0.02em !important;
}

h4 {
    font-size: 1.15rem !important; /* Crisp card headers */
    letter-spacing: -0.01em !important;
}

p, .lead {
    font-size: 0.95rem !important; /* Smaller, cleaner body copy */
    line-height: 1.6;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Bootstrap 5 Primary Overrides mapping to the layout theme */
.text-primary {
    color: var(--brand-emerald) !important;
}

.btn {
    font-size: 0.9rem !important; /* Sleeker, less bulky buttons */
}

.btn-primary {
    background-color: var(--brand-emerald);
    border-color: var(--brand-emerald);
    color: #000000;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--brand-emerald-hover);
    border-color: var(--brand-emerald-hover);
    color: #000000;
}

.btn-outline-light:hover {
    background-color: #ffffff;
    color: #000000;
}

/* Navigation Overrides */
.navbar {
    background-color: rgba(9, 11, 12, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dark);
}

.navbar-brand {
    font-size: 1.35rem !important; /* Balanced logo size */
}

.navbar-nav .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem !important;
    padding: 0.5rem 1.2rem !important;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus {
    color: #ffffff;
}

/* Structural Spacers */
.section-padding {
    padding: 90px 0;
}

.border-top-dark {
    border-top: 1px solid var(--border-dark);
}

.bg-dark-soft {
    background-color: var(--bg-dark-cards);
}

.max-w-700 { max-width: 650px; }
.max-w-300 { max-width: 300px; }

/* Hero Section Styles */
.hero-section {
    min-height: 85vh;
    padding: 100px 0 60px 0;
}

.hero-badge {
    background-color: rgba(0, 230, 153, 0.06);
    border: 1px solid rgba(0, 230, 153, 0.15);
    color: var(--brand-emerald);
    font-size: 0.8rem !important;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.hero-title {
    max-width: 820px;
}

.hero-subtitle {
    max-width: 620px;
}

.dot-indicator {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--brand-emerald);
    border-radius: 50%;
}

.features-row-text {
    font-size: 0.85rem !important;
    letter-spacing: 0.02em;
}

/* Feature & Card Elements */
.feature-card {
    background-color: rgba(17, 20, 22, 0.4);
    border: 1px solid var(--border-dark);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    border-color: rgba(0, 230, 153, 0.3);
}

.icon-box {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 230, 153, 0.05);
    border-radius: 10px;
}

/* Process Timeline Card Components */
.process-card {
    background-color: rgba(9, 11, 12, 0.6);
    border: 1px solid var(--border-dark);
}

.process-step {
    font-size: 0.75rem !important;
    font-weight: 700;
    color: var(--brand-emerald);
    background-color: rgba(0, 230, 153, 0.08);
    padding: 3px 8px;
    border-radius: 5px;
    letter-spacing: 0.05em;
}

/* Portfolio Grid Customizations */
.portfolio-card {
    background-color: rgba(17, 20, 22, 0.5);
    border: 1px solid var(--border-dark);
}

.tech-badge {
    background-color: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 0.7rem !important;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Pricing Grid Architecture */
.pricing-card {
    background-color: rgba(9, 11, 12, 0.8);
    border: 1px solid var(--border-dark);
}

.pricing-card.featured {
    border: 2px solid var(--brand-emerald);
    background-color: rgba(17, 20, 22, 0.9);
}

.pricing-features li {
    padding: 6px 0;
    color: #cbd5e1;
    font-size: 0.88rem !important;
}

.pricing-features li i {
    margin-right: 8px;
}

/* Contact Module & Form Customizations */
.contact-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 230, 153, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.contact-form-wrapper {
    background-color: var(--bg-dark-cards);
    border: 1px solid var(--border-dark);
}

.form-label {
    font-size: 0.8rem !important;
}

.form-control {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-dark);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.9rem !important;
}

.form-control:focus {
    background-color: var(--bg-dark);
    border-color: var(--brand-emerald);
    color: #ffffff;
    box-shadow: 0 0 0 0.25rem rgba(0, 230, 153, 0.15);
}

/* Footer Navigation Layout */
footer ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.88rem !important;
}

footer ul li a:hover {
    color: #ffffff;
}

/* Custom Quick Response Promise Box */
.response-promise-box {
    background-color: var(--bg-dark-cards); /* Matches the card depth from your layout */
    border: 1px solid var(--border-dark);   /* Clean, subtle border separating it from the background */
    display: flex;
    align-items: flex-start;
}

/* Explicit typography contrast overrides for the inner text */
.response-promise-box .promise-text {
    color: var(--text-muted) !important;
    line-height: 1.5;
}

.response-promise-box .promise-text strong {
    color: #ffffff !important; /* Makes the "Quick Response Promise:" tag stand out cleanly */
}

/* Premium Portfolio Grid & Image Masking */
.portfolio-card {
    background-color: rgba(17, 20, 22, 0.4);
    border: 1px solid var(--border-dark);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.portfolio-card:hover {
    border-color: rgba(0, 230, 153, 0.25);
}

/* Image Wrapper Aspect Ratio & Cinematic Scale Effect */
.portfolio-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10; /* Clean cinematic horizontal proportions */
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--border-dark);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* Keeps the top part of your website mockups visible */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Smooth zoom on card hover */
.portfolio-card:hover .portfolio-img {
    transform: scale(1.04);
}

/* Glassmorphism backing for absolute positioned tech badges */
.portfolio-badges {
    z-index: 2;
}

.tech-badge {
    background-color: rgba(9, 11, 12, 0.75) !important;
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.7rem !important;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.extra-small-text {
    font-size: 0.75rem !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Pricing Grid Architecture Overrides */
.pricing-card {
    background-color: #111416; /* Clean card depth fill from your image specs */
    border: 1px solid var(--border-dark);
}

.pricing-card.featured {
    border: 2px solid var(--brand-emerald);
    background-color: rgba(17, 20, 22, 0.95);
}

.pricing-features li {
    padding: 6px 0;
    color: #cbd5e1;
    font-size: 0.88rem !important;
}

/* Forces checkmarks to precisely display the high-performance emerald green color token */
.pricing-features li i.bi-check2 {
    color: var(--brand-emerald) !important;
    margin-right: 8px;
    font-weight: 700;
}

/* Optimized Text Sizes for 4-Column Portfolio Horizontal Matrix */
.portfolio-content p {
    font-size: 0.85rem !important; /* Slightly crisper to look immaculate in tighter column widths */
    line-height: 1.5;
    margin-bottom: 1.5rem !important;
}

.portfolio-content h4 {
    font-size: 1.1rem !important;
    margin-top: 0.25rem;
}

/* Maintain crisp horizontal ratios for row alignment */
.portfolio-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #090b0c;
    border-bottom: 1px solid #1f2428;
}