/* Ubuntu Development Solution Custom Styles */

/* Service items styling */
.service-item {
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Resource cards styling */
.resource-category h3 {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

/* Modern Resource Card Design */
.resource-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.resource-card-icon {
    background: linear-gradient(135deg, #81B29A 0%, #6A9A82 100%);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.resource-card-icon::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%);
    transition: transform 0.6s ease;
}

.resource-card:hover .resource-card-icon::before {
    transform: scale(1.5);
}

.resource-card-icon i {
    font-size: 3.5rem;
    color: #fff;
    z-index: 1;
    transition: transform 0.4s ease;
}

.resource-card:hover .resource-card-icon i {
    transform: scale(1.1) rotate(5deg);
}

.resource-card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.resource-badge {
    display: inline-block;
    background: linear-gradient(135deg, #F2CC8F 0%, #E8B968 100%);
    color: #333;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    width: fit-content;
}

.resource-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resource-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resource-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

.resource-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 500;
}

.resource-stats i {
    font-size: 1rem;
    color: #81B29A;
}

.resource-download-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #81B29A 0%, #6A9A82 100%);
    color: #fff;
    padding: 16px 24px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.resource-download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.resource-card:hover .resource-download-btn::before {
    left: 100%;
}

.resource-download-btn:hover {
    background: linear-gradient(135deg, #6A9A82 0%, #5A8A72 100%);
    color: #fff;
}

.resource-download-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.resource-card:hover .resource-download-btn i {
    transform: translateX(4px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .resource-card-icon {
        padding: 30px;
    }
    
    .resource-card-icon i {
        font-size: 2.5rem;
    }
    
    .resource-card-body {
        padding: 20px;
    }
    
    .resource-title {
        font-size: 1.1rem;
    }
}

/* Portfolio Cards */
.portfolio-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.portfolio-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(129, 178, 154, 0.95) 0%, rgba(106, 154, 130, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-link {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #81B29A;
    font-size: 1.5rem;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.portfolio-card:hover .portfolio-link {
    transform: scale(1);
}

.portfolio-link:hover {
    background: #F2CC8F;
    color: #fff;
}

.portfolio-content {
    padding: 24px;
}

.portfolio-category {
    display: inline-block;
    background: linear-gradient(135deg, #F2CC8F 0%, #E8B968 100%);
    color: #333;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.portfolio-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
}

.portfolio-excerpt {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Portfolio Detail Page */
.portfolio-detail-card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.portfolio-detail-card h3 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 20px;
}

.portfolio-detail-card h4 {
    color: #81B29A;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 20px;
}

.portfolio-detail-card .lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 30px;
}

.portfolio-details-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #495057;
}

.portfolio-details-content strong {
    color: #2c3e50;
    font-weight: 600;
}

.portfolio-sidebar {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 16px;
}

.portfolio-meta .meta-item {
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
}

.portfolio-meta .meta-item:last-child {
    border-bottom: none;
}

.related-portfolio-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-portfolio-item:hover {
    background: #f8f9fa;
    transform: translateX(4px);
}

.related-portfolio-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.related-portfolio-info h6 {
    font-size: 0.9rem;
    color: #2c3e50;
    margin-bottom: 4px;
}

.related-portfolio-info small {
    color: #6c757d;
}

@media (max-width: 768px) {
    .portfolio-image {
        height: 220px;
    }
    
    .portfolio-detail-card {
        padding: 20px;
    }
}

/* Under Development Page */
.under-development-content {
    padding: 60px 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.under-development-content h1 {
    color: #2c3e50;
    font-weight: 700;
}

.under-development-content .lead {
    color: #495057;
    font-size: 1.25rem;
}

.under-development-content i.bi-tools {
    animation: swing 2s ease-in-out infinite;
}

@keyframes swing {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

/* File icons styling */
.file-icon {
    min-width: 60px;
}

/* Contact details styling */
.contact-detail {
    margin-bottom: 20px;
}

.contact-detail h6 {
    color: var(--secondary-color);
    font-weight: var(--font-weight-bold);
    margin-bottom: 5px;
}

.contact-detail p {
    margin-bottom: 0;
}

/* Team member cards */
.member-block {
    transition: all 0.3s ease;
}

.member-block:hover {
    transform: translateY(-5px);
}

/* Custom block improvements */
.custom-block {
    transition: all 0.3s ease;
}

.custom-block:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Ensure images are responsive and properly sized */
.member-block-image,
.custom-block-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Service detail page improvements */
.service-content {
    line-height: 1.8;
}

.service-content h2 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 20px;
}

.service-content h5 {
    color: #81B29A;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 20px;
}

.service-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 20px;
}

.service-content strong {
    color: #2c3e50;
    font-weight: 600;
}

.service-meta {
    border-left: 4px solid var(--primary-color);
}

.related-service-item {
    transition: all 0.3s ease;
}

.related-service-item:hover {
    background-color: var(--section-bg-color);
}

/* Form improvements */
.contact-form-wrap {
    background: var(--section-bg-color);
    padding: 30px;
    border-radius: var(--border-radius-medium);
}

/* Pagination styling */
.pagination .page-link {
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

.pagination .page-link:hover {
    color: var(--white-color);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Badge styling */
.badge {
    font-size: 0.75em;
}

/* Responsive improvements */
@media screen and (max-width: 768px) {
    .member-block-image,
    .custom-block-image {
        height: 200px;
    }
    
    .contact-form-wrap {
        padding: 20px;
        margin-top: 30px;
    }
    
    .service-meta {
        padding: 20px;
    }
}
/* Fix Ubuntu logo compression */
.navbar-brand-image {
    width: 80px !important;
    height: 80px !important;
    object-fit: contain !important;
}
.navbar-logo {
    width: 120px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

.navbar {
    background: transparent !important;
    padding: 0.5rem 0;
}

.navbar-brand {
    position: relative;
    padding: 15px 25px 15px 20px !important;
    z-index: 10;
}

.navbar-brand::before {
    content: '';
    position: absolute;
    top: -100vh;
    left: -100vw;
    right: -120px;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0 0 30px 0;
    z-index: -1;
}

.navbar .navbar-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 8px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar .nav-link {
    color: #333 !important;
    padding: 8px 12px !important;
    margin: 0 2px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(129, 178, 154, 0.1);
}

.navbar .custom-btn {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #333 !important;
    border: 2px solid rgba(129, 178, 154, 0.3);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.navbar .custom-btn:hover {
    background: var(--primary-color) !important;
    color: white !important;
}

@media (max-width: 1199px) {
    .navbar-logo {
        width: 100px;
        max-height: 50px;
    }
    
    .navbar .navbar-nav {
        padding: 6px 15px;
    }
    
    .navbar .nav-link {
        padding: 6px 10px !important;
        font-size: 0.9rem;
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-radius: 15px;
        margin-top: 10px;
        padding: 15px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    }
    
    .navbar .navbar-nav {
        background: transparent;
        box-shadow: none;
        padding: 0;
    }
    
    .navbar .nav-link {
        padding: 10px 15px !important;
        margin: 2px 0;
        border-radius: 8px;
    }
}

@media (max-width: 768px) {
    .navbar-logo {
        width: 90px;
        max-height: 45px;
    }
    
    .navbar-brand {
        padding: 10px 20px 10px 15px !important;
    }
    
    .navbar-brand::before {
        right: -100px;
    }
}

/* Fix for sticky navbar */
.sticky-wrapper {
    width: 100% !important;
    z-index: 1000;
}

.sticky-wrapper .navbar {
    width: 100% !important;
}

/* Ensure footer navbar brand doesn't have the white background */
.site-footer .navbar-brand::before {
    display: none;
}
/* Modern Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 40%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0.1) 100%) !important;
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    max-width: 1200px;
    width: 100%;
    padding: 0 15px;
}

.hero-content-inner {
    max-width: 600px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.hero-buttons {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.hero-buttons .btn {
    margin-right: 1rem;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
    background: linear-gradient(45deg, var(--custom-btn-bg-color), var(--custom-btn-bg-hover-color));
    border: none;
    box-shadow: 0 4px 15px rgba(242, 204, 143, 0.4);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 204, 143, 0.6);
}

.hero-buttons .btn-outline-light {
    border: 2px solid rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
}

.hero-buttons .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
    max-width: 1200px;
    width: 100%;
    padding: 0 15px;
    justify-content: flex-start;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-indicator.active {
    background: var(--custom-btn-bg-color);
    transform: scale(1.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Responsive Hero Slider */
@media (max-width: 768px) {
    .hero-content {
        bottom: 60px;
        padding: 0 15px;
    }
    
    .hero-content-inner {
        max-width: 100%;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-bottom: 10px;
        display: block;
        width: 100%;
        max-width: 250px;
    }
    
    .hero-indicators {
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 15px;
        bottom: 40px;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
}

/* Redesigned hero sections for other pages - matching homepage style */
.hero-section {
    height: 70vh !important;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    margin-top: 0;
    top: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 40%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.hero-section .container {
    z-index: 10;
    position: relative;
}

.hero-section h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.hero-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    color: white;
}

@media (max-width: 768px) {
    .hero-section {
        height: 60vh !important;
        min-height: 400px;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    .hero-section .container {
        padding-top: 80px;
    }
    
    body {
        margin: 0;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 50vh !important;
        min-height: 350px;
    }
    
    .hero-section .container {
        padding-top: 70px;
    }
}

/* Breadcrumb positioning fix for mobile */
@media (max-width: 768px) {
    nav[aria-label="breadcrumb"] {
        top: 60px !important;
    }
}

/* Hide breadcrumb on hero section and position below */
.hero-section nav[aria-label="breadcrumb"] {
    display: none;
}

.breadcrumb-below-hero {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}