/* 3D Print Pro - PowerIT Solutions Official Elementor Design */

:root {
    /* Official PowerIT Colors from Elementor */
    --primary-color: #A63B07;
    --primary-hover: #8a3106;
    --secondary-color: #FCF9F8;
    --text-color: #4D4D4D;
    --accent-color: #0D0D0D;
    --white-color: #FFFFFF;
    --light-bg: #F6F3F2;
    --border-color: #00000014;
    --overlay-color: #FFFFFF40;

    /* Extended Palette */
    --success-color: #00d26a;
    --danger-color: #ff3b3b;
    --warning-color: #ffb700;
    --info-color: #A63B07;

    /* Shadows */
    --shadow-sm: 0 3px 15px 0px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);

    /* Typography Scale */
    --font-primary: "Inter Tight", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --h1-size: 90px;
    --h2-size: 55px;
    --h3-size: 40px;
    --h4-size: 30px;
    --h5-size: 24px;
    --h6-size: 18px;
    --text-size: 16px;
    --button-size: 16px;
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--white-color);
    line-height: 1.6em;
    font-size: var(--text-size);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Add padding only to pages with fixed navigation */
body.has-navbar {
    padding-top: 56px;
}

/* Flash messages - only add top margin when navbar exists */
body.has-navbar .flash-message {
    margin-top: 56px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-family: var(--font-primary);
    line-height: 1.2em;
}

h1 {
    font-size: var(--h1-size);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1em;
    letter-spacing: 0.5px;
}

h2 {
    font-size: var(--h2-size);
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.3em;
}

h3 {
    font-size: var(--h3-size);
    font-weight: 600;
    text-transform: capitalize;
}

h4 {
    font-size: var(--h4-size);
    font-weight: 500;
    text-transform: capitalize;
}

h5 {
    font-size: var(--h5-size);
    font-weight: 500;
    text-transform: capitalize;
}

h6 {
    font-size: var(--h6-size);
    font-weight: 500;
    text-transform: capitalize;
}

/* Responsive Typography */
@media (max-width: 1024px) {
    :root {
        --h1-size: 65px;
        --h2-size: 50px;
        --h3-size: 26px;
        --h4-size: 25px;
        --h5-size: 20px;
    }
}

@media (max-width: 767px) {
    :root {
        --h1-size: 45px;
        --h2-size: 38px;
        --h3-size: 25px;
        --h4-size: 22px;
        --h5-size: 18px;
        --h6-size: 16px;
    }
}

/* Navigation */
.navbar {
    box-shadow: var(--shadow-md);
    background-color: var(--light-color) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: -0.5px;
    color: var(--dark-color) !important;
}

.nav-link {
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.75rem 1.25rem !important;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(0, 102, 255, 0.08);
    transform: translateY(-2px);
}

/* Hero Content Section */
.hero-content-section {
    position: relative;
    min-height: 500px;
    padding: 10px 0 60px;
    overflow: hidden;
}

/* Hero Background - Large Grid Pattern (Elementor Style) */
.hero-content-section .hero-background-fixed {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--secondary-color);
    z-index: 0;
}

.hero-content-section .hero-background-fixed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/hero-background-3.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.08;
    pointer-events: none;
}

/* Hero Content - Above Background */
.hero-content-section .container {
    position: relative;
    z-index: 1;
}

/* All sections after hero have white background and higher z-index */
section {
    position: relative;
    z-index: 2;
    background-color: var(--white-color);
}

.hero-stats-card {
    animation: fadeInUp 1s ease 0.3s both;
    background: transparent;
    border-radius: 15px;
    box-shadow: none;
}

.hero-stats-card .stat-item {
    background: var(--white-color);
    border-radius: 15px;
    padding: 20px 15px;
    border: 2px solid var(--primary-color);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 15px 12px rgba(0, 0, 0, 0.15),
        0 8px 8px rgba(0, 0, 0, 0.12),
        0 4px 4px rgba(0, 0, 0, 0.1),
        0 2px 2px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-stats-card .stat-item:hover {
    transform: translateY(-8px);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.25),
        0 20px 20px rgba(0, 0, 0, 0.18),
        0 12px 12px rgba(0, 0, 0, 0.15),
        0 6px 6px rgba(0, 0, 0, 0.12),
        0 3px 3px rgba(0, 0, 0, 0.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge .badge {
    background-color: var(--light-bg) !important;
    color: var(--primary-color) !important;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 8px 20px;
    font-weight: 500;
    text-transform: capitalize;
}

.rating-stars i {
    color: var(--primary-color);
    font-size: 15px;
    margin: 0 2.5px;
}

/* Page Header - PowerIT Style */
.page-header {
    background-color: var(--secondary-color);
    padding: 120px 0 80px;
    margin-bottom: 0;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/hero-background-3.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.08;
}

.page-header h1 {
    color: var(--accent-color);
    position: relative;
    z-index: 1;
}

.page-header p {
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

/* Feature Boxes */
.feature-box {
    padding: 45px 35px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-box:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: var(--shadow-xl);
    border-color: rgba(0, 102, 255, 0.2);
}

.feature-box:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-box:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.shadow-hover {
    transition: all 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg) !important;
    transform: translateY(-8px);
}

/* Cards */
.card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg) !important;
}

.service-card, .product-card, .portfolio-card {
    height: 100%;
    border: 2px solid #f0f2f5;
}

.service-card:hover, .product-card:hover, .portfolio-card:hover {
    border-color: var(--primary-color);
}

.service-card-detail {
    border-left: 5px solid var(--primary-color);
    border-radius: 12px;
}

.service-icon-large {
    text-align: center;
    font-size: 3.5rem;
    color: var(--primary-color);
}

/* Product Cards */
.product-card .card-body {
    padding: 2rem;
}

.product-card .card-title {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark-color);
}

/* Portfolio */
.portfolio-placeholder {
    height: 280px;
    background: linear-gradient(135deg, #f0f2f5 0%, #e4e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
}

.portfolio-card img {
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-card:hover img {
    transform: scale(1.08);
}

.capability-item {
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

.capability-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

/* Process Steps */
.process-step {
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.process-step:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #00d4ff 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    margin: 0 auto 20px;
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.process-step-card {
    padding: 30px 20px;
    transition: all 0.3s ease;
}

.process-step-card:hover {
    transform: translateY(-8px);
}

.step-number-badge {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
}

.process-step-card:hover .step-number-badge {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.15) 100%);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1) rotate(5deg);
}

/* Contact Page */
.contact-info-item {
    border-bottom: 2px solid #f0f2f5;
    padding: 25px 0;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    padding-left: 10px;
    border-bottom-color: var(--primary-color);
}

.contact-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.map-placeholder {
    min-height: 450px;
    background: linear-gradient(135deg, #f0f2f5 0%, #e4e7eb 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

/* Forms */
.form-label {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--dark-color);
    letter-spacing: 0.3px;
}

.form-control {
    border: 2px solid #e4e7eb;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.15);
    transform: translateY(-2px);
}

/* Buttons - Official PowerIT Style */
.btn {
    padding: 15px 30px;
    font-family: var(--font-primary);
    font-size: var(--button-size);
    font-weight: 600;
    text-transform: capitalize;
    line-height: 1.2em;
    border-radius: 100px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid var(--white-color);
    color: var(--white-color);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--white-color);
    color: var(--primary-color);
}

.btn-light {
    background-color: var(--white-color);
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.btn-lg {
    padding: 15px 30px;
    font-size: var(--button-size);
}

/* Badges */
.badge {
    padding: 8px 16px;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: var(--primary-color);
}

.badge-success {
    background: var(--success-color);
}

.badge-warning {
    background: var(--warning-color);
    color: var(--dark-color);
}

.badge-danger {
    background: var(--danger-color);
}

/* Footer */
footer {
    margin-top: auto;
    background: var(--dark-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

footer a {
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

footer a:hover {
    color: var(--primary-color) !important;
    transform: translateX(4px);
}

.social-links a {
    display: inline-flex;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    background: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.4);
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: none;
    font-weight: 600;
    padding: 16px 24px;
    box-shadow: var(--shadow-sm);
}

/* Images - PowerIT Style */
img {
    border-radius: 15px;
}

.card-img-top,
.portfolio-placeholder,
.product-image {
    border-radius: 15px 15px 0 0;
}

/* Forms - PowerIT Style */
input:not([type="button"]):not([type="submit"]),
textarea,
select,
.form-control {
    font-family: var(--font-primary);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 12px 18px;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(166, 59, 7, 0.15);
}

/* Utilities */
.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow {
    box-shadow: var(--shadow-md) !important;
}

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

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

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-light {
    background-color: var(--secondary-color) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 450px;
    }

    .hero-overlay {
        min-height: 450px;
    }

    .page-header {
        padding: 90px 0 70px;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .feature-box {
        padding: 30px 20px;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Loading State */
.loading {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(0.5);
}

/* Pricing */
.pricing-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 24px;
    border-radius: 12px;
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* Filter Section */
.filter-section {
    display: flex;
    align-items: center;
}

.filter-section select {
    border: 2px solid #e4e7eb;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-section select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.15);
}

@media (max-width: 576px) {
    .filter-section {
        width: 100%;
        margin-top: 15px;
    }

    .filter-section select {
        width: 100% !important;
    }
}

/* Validation Error Highlighting */
.validation-error {
    border-color: var(--danger-color) !important;
    background-color: rgba(255, 59, 59, 0.05) !important;
    box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.15) !important;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* 5 Column Layout for Colour Cards */
@media (min-width: 992px) {
    .col-lg-2-4 {
        flex: 0 0 auto;
        width: 20%;
    }
}
