/* Custom Styles for Turbo Labs HQ */

/* Global Styles */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --accent-color: #667eea;
    --accent-hover: #764ba2;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

/* Prevent horizontal scroll on all devices */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

html {
    margin: 0;
    padding: 0;
}

/* Hero Section */
.hero-section {
    background: var(--primary-gradient);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-section p {
    animation: fadeInUp 1s ease-out;
}

.hero-section .btn {
    animation: fadeInUp 1.2s ease-out;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    text-align: center;
}

.loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

/* Form Validation Styles */
.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(2.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23dc3545' d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z'/%3e%3cpath fill='%23dc3545' d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem 1.25rem;
}

.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: #198754;
    padding-right: calc(2.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23198754' d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 4.3 6.3a.75.75 0 0 0-1.06 1.06l3.5 3.5a.75.75 0 0 0 1.08-.022l5-5.5a.75.75 0 0 0-.022-1.08z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem 1.25rem;
}

/* Card Hover Effects */
.card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3) !important;
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Service Cards with Gradient Borders */
.service-card {
    position: relative;
    background: linear-gradient(white, white) padding-box,
                var(--primary-gradient) border-box;
    border: 3px solid transparent;
    border-radius: 15px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Footer Links */
footer a {
    transition: all 0.3s ease;
    position: relative;
    color: rgba(255, 255, 255, 0.8);
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

footer a:hover {
    color: #fff !important;
    text-decoration: none !important;
}

footer a:hover::after {
    width: 80%;
}

/* Footer Brand Styling */
footer .footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer Column Spacing */
footer .row > div {
    flex: 1;
    min-width: 0;
}

footer .row > div:not(:last-child) {
    padding-right: 1.5rem;
}

footer .row > div:not(:first-child) {
    padding-left: 1.5rem;
}

@media (max-width: 767.98px) {
    footer .row > div:not(:last-child) {
        padding-right: 0;
    }
    
    footer .row > div:not(:first-child) {
        padding-left: 0;
    }
}

/* Responsive Image Placeholders */
img[onerror] {
    max-width: 100%;
    height: auto;
}

/* Alert Animations */
.alert {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Phone Input Formatting */
#phone {
    font-family: monospace;
    letter-spacing: 0.05em;
}

/* Section Spacing */
section {
    padding: 4rem 0;
    position: relative;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* Animated Background Sections */
.bg-light {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%) !important;
}

/* Buttons */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    background: var(--secondary-gradient);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Navbar Enhancement */
.navbar {
    background: var(--dark-gradient) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin: 0 !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0 !important;
}

/* Removed navbar::before gradient line - header should be at top with no color above */

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

/* Icon Enhancements */
.bi {
    transition: transform 0.3s ease;
}

.card:hover .bi {
    transform: scale(1.2);
}

/* Marketplace Cards */
.marketplace-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 1.5rem;
}

.marketplace-card:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    transform: scale(1.05);
}

/* Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.feature-icon:hover {
    transform: rotate(360deg) scale(1.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Call to Action Section */
.cta-section {
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

.cta-section * {
    color: #ffffff !important;
}

.cta-section h2,
.cta-section .display-5 {
    color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: unset !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cta-section p {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section .btn-light {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #667eea !important;
    border: none;
    font-weight: 600;
    text-shadow: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-light:hover {
    background: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Footer Enhancement */
footer {
    background: var(--dark-gradient) !important;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}

/* List Items */
.list-unstyled li {
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.list-unstyled li:hover {
    transform: translateX(5px);
    color: var(--accent-color);
}

/* Service Card Lists - Centered with aligned checkmarks */
.service-card .list-unstyled {
    display: inline-block;
    text-align: left;
}

.service-card .list-unstyled li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.service-card .list-unstyled li i {
    flex-shrink: 0;
}

/* Contact Page Enhancements */
.contact-card {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Form Enhancements */
.form-control {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Section Headers */
.display-5 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* Responsive Styles */

/* Tablet Styles (768px - 991px) */
@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
}

/* Mobile Styles (up to 767px) */
@media (max-width: 767.98px) {
    /* Typography */
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    /* Section Spacing */
    section {
        padding: 2.5rem 0;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    /* Cards */
    .card-body {
        padding: 1.5rem;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
    
    /* Feature Icons */
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    /* Contact Icons */
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Hero Section */
    .hero-section .btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        width: 100%;
    }
    
    /* Service Lists */
    .service-card .list-unstyled {
        text-align: center;
    }
    
    .service-card .list-unstyled li {
        justify-content: center;
        text-align: left;
        display: inline-flex;
        width: auto;
        margin: 0.25rem 0.5rem;
    }
    
    /* Footer */
    footer .row > div {
        margin-bottom: 2rem;
        text-align: center !important;
    }
    
    footer .row > div:last-child {
        margin-bottom: 0;
    }
    
    /* Contact Form */
    .contact-card {
        margin-bottom: 1.5rem;
    }
    
    /* Marketplace Cards */
    .marketplace-card {
        margin-bottom: 1.5rem;
    }
    
    /* CTA Section */
    .cta-section h2 {
        font-size: 1.75rem;
    }
    
    .cta-section .btn {
        width: 100%;
    }
}

/* iPhone XR and similar (up to 575px) */
@media (max-width: 575.98px) {
    /* Container padding */
    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    /* Typography - aggressive scaling */
    .hero-section h1 {
        font-size: 1.5rem !important;
        line-height: 1.3;
        margin-bottom: 1rem !important;
    }
    
    .hero-section .lead {
        font-size: 0.95rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .hero-section p {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }
    
    .display-5 {
        font-size: 1.4rem !important;
        line-height: 1.3;
    }
    
    .display-4 {
        font-size: 1.75rem !important;
    }
    
    h2, h3, h4, h5 {
        font-size: 1.1rem !important;
    }
    
    /* Section spacing */
    section {
        padding: 2rem 0 !important;
    }
    
    .hero-section {
        padding: 2rem 0 !important;
    }
    
    /* Cards */
    .card-body {
        padding: 1rem !important;
    }
    
    .card-title {
        font-size: 1.1rem !important;
    }
    
    .card-text {
        font-size: 0.9rem !important;
    }
    
    /* Icons */
    .feature-icon {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .contact-icon {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.1rem !important;
    }
    
    /* Buttons */
    .btn {
        font-size: 0.9rem !important;
        padding: 0.6rem 1.2rem !important;
    }
    
    .btn-lg {
        padding: 0.7rem 1.3rem !important;
        font-size: 0.95rem !important;
        width: 100% !important;
    }
    
    /* Hero button */
    .hero-section .btn {
        display: block;
        width: 100% !important;
        margin-top: 0.75rem !important;
    }
    
    /* Service lists */
    .service-card .list-unstyled {
        text-align: center;
        padding: 0;
    }
    
    .service-card .list-unstyled li {
        display: block !important;
        margin: 0.4rem 0 !important;
        justify-content: center !important;
        text-align: center !important;
        font-size: 0.85rem !important;
    }
    
    .service-card .list-unstyled li i {
        margin-right: 0.5rem;
    }
    
    /* Forms */
    .form-control {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 0.65rem 0.75rem !important;
    }
    
    .form-label {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .form-text {
        font-size: 0.8rem !important;
    }
    
    /* Contact cards */
    .contact-card .card-body {
        padding: 1rem !important;
    }
    
    .contact-card .card-title {
        font-size: 1rem !important;
    }
    
    .contact-card .card-text {
        font-size: 0.85rem !important;
    }
    
    /* Spacing adjustments */
    .mb-4 {
        margin-bottom: 1.25rem !important;
    }
    
    .mb-5 {
        margin-bottom: 1.5rem !important;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Navbar */
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .navbar-collapse {
        margin-top: 0.75rem;
    }
    
    .nav-link {
        font-size: 0.9rem !important;
        padding: 0.5rem 0 !important;
    }
    
    /* Footer */
    footer {
        padding: 2rem 0 !important;
    }
    
    footer h5 {
        font-size: 1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    footer p, footer li {
        font-size: 0.85rem !important;
    }
    
    /* CTA Section */
    .cta-section h2 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .cta-section p {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }
    
    .cta-section .btn {
        width: 100% !important;
    }
    
    /* Images */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Alert boxes */
    .alert {
        font-size: 0.85rem !important;
        padding: 0.75rem !important;
    }
    
    .alert-heading {
        font-size: 1rem !important;
    }
    
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative;
    }
    
    /* Ensure all elements fit */
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    [class*="col-"] {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    /* Fix any overflow issues */
    * {
        box-sizing: border-box;
    }
    
    img, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* iPhone SE specific (375px and below) */
@media (max-width: 375px) {
    .container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .hero-section h1 {
        font-size: 1.35rem !important;
    }
    
    .display-5 {
        font-size: 1.25rem !important;
    }
    
    .card-body {
        padding: 0.75rem !important;
    }
    
    .btn-lg {
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    .feature-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }
}

