/* Custom Styles for BuildCraft Consultancy */

:root {
    --primary-color: #2c5aa0;
    --secondary-color: #f8f9fa;
    --accent-color: #ff6b35;
    --dark-color: #212529;
    --light-color: #ffffff;
    --gradient-primary: linear-gradient(135deg, #2c5aa0 0%, #1e3a72 100%);
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

/* Logo adjustments for mobile */
@media (max-width: 768px) {
    .navbar-logo {
        height: 35px;
        max-width: 120px;
    }
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 5px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(44, 90, 160, 0.8), rgba(30, 58, 114, 0.8)), 
                url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(1px);
}

.hero-buttons .btn {
    margin: 5px;
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 50px;
}

/* Service Cards */
.service-card {
    background: var(--light-color);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    border: 1px solid #e9ecef;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.service-card h4 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.service-features li {
    padding: 8px 0;
    color: #6c757d;
    position: relative;
    padding-left: 25px;
}

.service-features li:before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Feature Items */
.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-item i {
    font-size: 2.5rem;
    display: block;
}

.feature-item h5 {
    font-weight: 700;
    margin: 15px 0 10px;
    color: var(--dark-color);
}

/* Experience Highlights */
.experience-highlights {
    background: var(--light-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
}

.highlight-item {
    padding: 20px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background: rgba(44, 90, 160, 0.05);
    transform: translateY(-2px);
}

.highlight-item i {
    font-size: 1.8rem;
    display: block;
}

.highlight-item h6 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 8px;
}

/* Legacy Stats Card (keep for any remaining usage) */
.stats-card {
    background: var(--light-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 5px;
}

.stat-item p {
    color: #6c757d;
    font-weight: 500;
    margin: 0;
}

/* About Image */
.about-image img {
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Portfolio */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(60%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-content {
    transform: translateY(0);
}

.portfolio-content h5 {
    font-weight: 700;
    margin-bottom: 10px;
}

/* Coming Soon Portfolio */
.coming-soon-portfolio {
    padding: 60px 0;
}

.portfolio-placeholder {
    background: var(--light-color);
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    border: 2px dashed #e9ecef;
    transition: all 0.3s ease;
}

.portfolio-placeholder:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
}

.coming-soon-item {
    padding: 20px;
    background: rgba(44, 90, 160, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.coming-soon-item:hover {
    background: rgba(44, 90, 160, 0.1);
    transform: translateY(-2px);
}

.coming-soon-item i {
    font-size: 1.5rem;
    display: block;
}

.coming-soon-item h6 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

/* Contact Form */
.contact-form {
    background: var(--light-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
}

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

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

/* Contact Info */
.contact-info i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

.contact-info h5 {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.contact-info p {
    color: #6c757d;
    margin: 0;
}

/* Social Links */
.social-links a {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color) !important;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    .service-card {
        margin-bottom: 30px;
    }
    
    .stats-card {
        margin-top: 30px;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .feature-item i {
        font-size: 2rem;
    }
    
    .portfolio-content {
        transform: translateY(0);
        position: relative;
        background: rgba(0, 0, 0, 0.9);
    }
}

/* Utility Classes */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: var(--shadow-medium);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form Success/Error States */
.form-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

.form-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

.form-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Section Padding */
section {
    scroll-margin-top: 80px;
}

/* Thank You Page Styles */
.thank-you-card {
    background: var(--light-color);
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    border: 1px solid #e9ecef;
}

.success-icon {
    animation: bounceIn 1s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.contact-method {
    padding: 30px 20px;
    background: rgba(44, 90, 160, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: rgba(44, 90, 160, 0.1);
    transform: translateY(-5px);
}

.next-step {
    padding: 30px 20px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

/* Page Header Styles */
.page-header {
    padding-top: 120px;
    padding-bottom: 80px;
}

/* Service Detail Styles */
.service-icon-large {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.service-detail h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 15px;
}

/* Process Steps */
.process-step {
    padding: 30px 20px;
}

.process-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.process-step h5 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 15px;
}

/* Pricing Cards */
.pricing-card {
    background: var(--light-color);
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-header h4 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 20px;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
    position: relative;
    padding-left: 30px;
}

.pricing-features li:before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 10px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Additional responsive adjustments for new components */
@media (max-width: 768px) {
    .page-header {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .service-icon-large {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .pricing-card.featured {
        transform: none;
        margin-bottom: 30px;
    }
    
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .price {
        font-size: 2.5rem;
    }
}