/* =========================================
   ZIXE Engineering - Modern Industrial UI (Redesign)
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600&family=Rajdhani:wght@500;600;700&display=swap');

:root {
    /* --- palette --- */
    --color-navy: #0f172a;
    /* Slate 900 */
    --color-navy-light: #1e293b;
    /* Slate 800 */
    --color-white: #ffffff;
    --color-gray-50: #f8fafc;
    --color-gray-100: #f1f5f9;
    --color-gray-200: #e2e8f0;
    --color-gray-600: #475569;

    --color-primary: #0ea5e9;
    /* Sky 500 */
    --color-accent: #f97316;
    /* Orange 500 */

    /* --- typography --- */
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Prompt', sans-serif;

    /* --- vars --- */
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* --- Global Reset --- */
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-gray-600);
    background-color: var(--color-gray-50);
    /* Soft gray overall */
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-navy);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

a {
    transition: all 0.3s ease;
    text-decoration: none;
}

/* --- Navigation --- */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-navy) !important;
    letter-spacing: 2px;
}

.navbar-brand span {
    color: var(--color-accent);
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    color: var(--color-navy) !important;
    padding: 0.5rem 1rem;
    letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary) !important;
}

/* --- Hero Section (Tech Grid) --- */
.hero-section {
    position: relative;
    background-color: var(--color-navy);
    padding: 180px 0 120px;
    color: #fff;
    overflow: hidden;
}

/* Tech Pattern Overlay */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
    z-index: 1;
}

/* Gradient Glow */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-sub {
    font-family: var(--font-heading);
    color: var(--color-accent);
    font-weight: 600;
    letter-spacing: 3px;
    font-size: 14px;
    display: block;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 4rem;
    /* Big impact */
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero-desc {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin-bottom: 3rem;
}

/* --- Buttons --- */
.btn {
    border-radius: 4px;
    /* Sharp corners for industrial look */
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem 2rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s;
}

.btn-zixe-primary {
    background-color: var(--color-accent);
    color: #fff;
    border: none;
}

.btn-zixe-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #ea580c;
    /* Darker orange */
    z-index: -1;
    transition: width 0.3s;
}

.btn-zixe-primary:hover::after {
    width: 100%;
}

.btn-zixe-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}

.btn-zixe-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-zixe-outline.dark {
    border-color: var(--color-navy);
    color: var(--color-navy);
}

.btn-zixe-outline:hover {
    background: #fff;
    color: var(--color-navy);
}

.btn-zixe-outline.dark:hover {
    background: var(--color-navy);
    color: #fff;
}


/* --- Section Styling --- */
.section-padding {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-accent);
    margin: 10px auto 0;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 10px;
}

/* --- Cards (Clean Sheet) --- */
.zixe-card {
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

/* Hover Effect: Border Highlight + Lift */
.zixe-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.zixe-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: transform 0.4s;
    transform-origin: left;
}

.zixe-card:hover::before {
    transform: scaleX(1);
}

.card-icon-wrap {
    width: 70px;
    height: 70px;
    background: var(--color-gray-50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: var(--color-primary);
    transition: 0.3s;
}

.zixe-card:hover .card-icon-wrap {
    background: var(--color-primary);
    color: #fff;
}

.zixe-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* --- Project Card (Redesign) --- */
.project-card {
    background: #fff;
    border: 1px solid var(--color-gray-100);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(14, 165, 233, 0.3);
}

.project-img-wrap {
    height: 240px;
    width: 100%;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--color-gray-100);
}

.project-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-img-wrap img {
    transform: scale(1.1);
}

.project-card .tag-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 2;
}

.project-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-card h5.proj-title {
    font-size: 1.25rem;
    color: var(--color-navy);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.project-card p {
    color: var(--color-gray-600);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

.project-card .btn-link {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.project-card .btn-link:hover {
    gap: 0.75rem;
    color: var(--color-accent);
}

/* --- Footer --- */
.footer-dark {
    background-color: var(--color-navy);
    color: #94a3b8;
    padding-top: 5rem;
}

.footer-dark h5 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

/* --- Utilities --- */
.text-accent {
    color: var(--color-accent) !important;
}

.text-primary {
    color: var(--color-primary) !important;
}

.bg-white {
    background-color: #fff !important;
}

/* --- Functional Extras --- */
.portfolio-filters .btn.active {
    background-color: var(--color-navy);
    color: #fff;
    border-color: var(--color-navy);
}

.portfolio-item {
    transition: all 0.3s ease-in-out;
}

/* Form Styles Override */
.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    color: var(--color-primary);
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.25rem rgba(14, 165, 233, 0.25);
}

/* Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Scrollbar adjustment for modals if needed */
/* Scrollbar adjustment for modals if needed */
body.modal-open {
    padding-right: 0 !important;
}

/* --- Floating Action Buttons (Unified) --- */
.floating-action-group {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.btn-floating {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-floating:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    color: #fff;
}

/* Ripple Effect Polish */
.btn-floating::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-floating:hover::after {
    width: 200%;
    height: 200%;
}

.btn-line {
    background: linear-gradient(135deg, #06C755, #05b54b);
}

.btn-phone {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.btn-top {
    background: linear-gradient(135deg, #f97316, #ea580c);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease, transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.btn-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}