/* Custom styles for the aerobuild.cloud app */

/* Google Fonts integration - Import these in the layout head */
/* font-family: 'Inter', sans-serif; */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --accent-color: #f59e0b;
    --accent-dark: #d97706;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-primary-light: #eff6ff;
    --bg-accent-light: #fef3c7;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    --border-color: #e5e7eb;
}

/* Global styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.container {
    max-width: 1280px;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 5rem 0;
}

/* Login Form Styles */
.form-check-input {
    width: 6px !important;
    height: 6px !important;
    min-width: 6px !important;
    margin-top: 2px !important;
    border-radius: 1px !important;
    flex-shrink: 0;
    font-size: 6px !important;
}

.checkbox-small {
    width: 6px !important;
    height: 6px !important;
    min-width: 6px !important;
}

/* PWA Install Button Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* PWA Install Button Styling */
#pwa-install-btn {
    transition: all 0.3s ease;
    border: none;
    font-weight: 600;
    letter-spacing: 0.025em;
}

#pwa-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3) !important;
}

.form-check {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.form-check-label {
    font-size: 0.9rem;
    margin-left: 8px;
    color: var(--text-light);
    font-weight: 400;
    line-height: 1.2;
}

/* Footer Styles */
.footer {
    margin-top: auto;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: var(--shadow-sm);
    border: none;
}

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

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Card styling */
.card {
    border: none;
    border-radius: var(--border-radius-md);
    background-color: var(--bg-white);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

/* Dark overlay for better text contrast on images */
.overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
    z-index: 1;
}

/* Text on dark backgrounds */
.text-on-image {
    position: relative;
    z-index: 2;
    color: white;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.card-industrial {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.card-industrial:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    padding: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Hero section */
.hero-section {
    position: relative;
    background-color: var(--bg-white);
    padding: 0;
    overflow: hidden;
}

.hero-content {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-image-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Feature sections */
.feature-section {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.feature-section:nth-child(even) {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.feature-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: var(--shadow-md);
    border: none;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    background-color: var(--bg-primary-light);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-container {
    transform: scale(1.1) rotate(10deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Process section */
.process-section {
    padding: 5rem 0;
    position: relative;
}

.process-step {
    position: relative;
    padding-left: 4rem;
    margin-bottom: 3rem;
}

.process-step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 3rem;
    height: 3rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
}

.process-step h3 {
    margin-bottom: 1rem;
    font-weight: 700;
}

.process-step p {
    color: var(--text-light);
}

/* Testimonial section */
.testimonial-section {
    background-color: var(--bg-light);
    padding: 5rem 0;
}

.testimonial-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    margin-top: 2rem;
    border-top: 4px solid var(--accent-color);
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.testimonial-author-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* CTA section */
.cta-section {
    background-color: var(--bg-primary-light);
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Animation effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Industrial accent elements */
.industrial-divider {
    height: 4px;
    width: 60px;
    background-color: var(--primary-color);
    margin: 2rem 0;
}

.industrial-accent {
    display: inline-block;
    height: 24px;
    width: 4px;
    background-color: var(--primary-color);
    margin-right: 12px;
    vertical-align: middle;
}

/* Image styling */
.img-industrial {
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

/* PWA Install Button Styling */
#installPWABtn {
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

#installPWABtn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

#installPWABtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

#installPWABtn i {
    transition: transform 0.3s ease;
}

#installPWABtn:hover i {
    transform: scale(1.1);
}

/* PWA install button animation when appearing */
#installPWABtn.show {
    animation: slideInRight 0.5s ease-out forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive adjustments for PWA button */
@media (max-width: 576px) {
    #installPWABtn {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
    
    #installPWABtn span {
        display: none !important;
    }
    
    #installPWABtn {
        min-width: auto;
        padding: 0.375rem 0.75rem;
    }
}

/* Ensure button is visible by default */
#installPWABtn {
    display: inline-flex !important;
    align-items: center;
    white-space: nowrap;
}
}

.img-industrial:hover {
    transform: scale(1.02);
}

/* Navbar styling */
.navbar {
    padding: 1rem 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.navbar-brand span {
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link:focus {
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .process-step {
        padding-left: 3.5rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .feature-card {
        margin-bottom: 1.5rem;
    }

    .process-step {
        padding-left: 3rem;
    }

    .section-padding {
        padding: 3rem 0;
    }
}