﻿/* Custom Styles for ITP LTD Website */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --dark-color: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 76px; /* Account for fixed navbar */
}

/* Section Titles */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

    .section-title:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: var(--primary-color);
    }

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(0,123,255,0.8), rgba(0,86,179,0.8)), url('/Images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 120px 0 80px;
    margin-top: -76px; /* Counteract body padding */
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

    .card:hover {
        box-shadow: 0 8px 15px rgba(0,0,0,0.2);
        transform: translateY(-5px);
    }

.feature-card, .service-card, .product-card {
    height: 100%;
}

    .feature-card .card-body, .service-card .card-body {
        padding: 2rem;
    }

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-scrolled {
    background-color: #343a40 !important;
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

    .navbar-dark .navbar-nav .nav-link:hover {
        color: white;
    }

    .navbar-dark .navbar-nav .nav-link.active {
        color: white;
        background: rgba(255,255,255,0.1);
        border-radius: 5px;
    }

/* Buttons */
.btn {
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #0056b3);
    padding: 12px 30px;
}

    .btn-primary:hover {
        background: linear-gradient(45deg, #0056b3, var(--primary-color));
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,123,255,0.3);
    }

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Portfolio Styles */
.portfolio-filter {
    margin-bottom: 30px;
}

.portfolio-item {
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.portfolio-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.portfolio-item .card {
    height: 100%;
}

/* Contact Form Styles */
.contact-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    height: 100%;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

/* Form Styles */
.form-control {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
    }

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #495057;
}

/* Alert Messages */
.alert {
    border-radius: 5px;
    border: none;
    padding: 15px 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

/* Service Icons */
.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

    .service-icon i {
        color: white;
        font-size: 2rem;
    }

/* Badges */
.badge {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 15px;
}

/* Footer */
footer {
    background: #343a40 !important;
    margin-top: auto;
}

    footer a {
        text-decoration: none;
        transition: color 0.3s ease;
    }

        footer a:hover {
            color: var(--primary-color) !important;
        }

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Fade In Animations */
.animate__animated {
    animation-duration: 0.6s;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 66px;
    }

    .hero-section {
        padding: 100px 0 60px;
        margin-top: -66px;
        text-align: center;
    }

    .display-4 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .feature-card .card-body,
    .service-card .card-body {
        padding: 1.5rem;
    }

    .btn-lg {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .contact-info-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 80px 0 40px;
    }

    .display-4 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn {
        display: none !important;
    }

    body {
        padding-top: 0;
    }

    .hero-section {
        background: none !important;
        color: black !important;
        padding: 20px 0 !important;
        margin-top: 0 !important;
    }
}
