/* Global Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #ffc107;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --success-color: #198754;
    --warning-color: #fd7e14;
    --danger-color: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    padding-top: 76px; /* Account for fixed navbar */
}

/* Adjust spacing for pages without hero section */
body.no-hero {
    padding-top: 76px;
}

body.has-hero {
    padding-top: 0;
}

/* Mobile body adjustments */
@media (max-width: 767.98px) {
    body {
        padding-top: 76px;
    }
    
    body.has-hero {
        padding-top: 0;
    }
}

/* Hero section specific styles */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-top: -30px; /* Compensate for body padding */
    padding-top: 150px; /* Increased padding to avoid menu overlap */
}

/* Hero buttons container */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

/* CTA buttons container */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

/* Mobile hero section adjustments */
@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 120px; /* Reduced padding for better mobile spacing */
        min-height: 100vh; /* Full height on mobile */
        padding-bottom: 2rem;
    }
    
    .hero-section .container {
        padding-top: 1rem;
        padding-bottom: 2rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section h1 {
        font-size: 2.2rem !important; /* Smaller font for mobile */
        line-height: 1.2 !important;
        margin-bottom: 1.5rem !important;
        text-align: center;
        padding: 0 1rem;
    }
    
    .hero-section p {
        font-size: 1.1rem !important; /* Readable font size */
        line-height: 1.5 !important;
        margin-bottom: 2rem !important;
        text-align: center;
        padding: 0 1rem;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-section .btn {
        margin-bottom: 1rem !important;
        width: 100%;
        max-width: 300px;
        display: block;
        margin-left: auto;
        margin-right: auto;
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .cta-section .btn {
        margin-bottom: 1rem !important;
        width: 100%;
        max-width: 300px;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-section .row {
        text-align: center;
        margin: 0;
    }
    
    /* Hero button container for mobile */
    .hero-section .col-lg-8 {
        text-align: center;
        padding: 0 1rem;
    }
    
    /* Hero buttons container mobile styles */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1rem;
    }
    
    /* Hero buttons container mobile styles */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    /* CTA buttons container mobile styles */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    /* Remove margin between buttons on mobile */
    .hero-section .btn + .btn {
        margin-left: 0 !important;
    }
    
    /* Remove margin between CTA buttons on mobile */
    .cta-section .btn + .btn {
        margin-left: 0 !important;
    }
}

/* Extra small devices hero adjustments */
@media (max-width: 575.98px) {
    .hero-section {
        padding-top: 100px; /* Further reduced for small screens */
        padding-bottom: 1.5rem;
    }
    
    .hero-section .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .hero-section h1 {
        font-size: 1.8rem !important; /* Even smaller for small phones */
        line-height: 1.1 !important;
        margin-bottom: 1rem !important;
        padding: 0 0.5rem;
    }
    
    .hero-section p {
        font-size: 1rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1.5rem !important;
        padding: 0 0.5rem;
        max-width: 95%;
    }
    
    .hero-section .btn {
        max-width: 100%;
        padding: 14px 20px;
        font-size: 15px;
        margin-bottom: 0.8rem !important;
    }
    
    .hero-section .col-lg-8 {
        padding: 0 0.5rem;
    }
    
    .hero-buttons {
        gap: 0.8rem;
    }
}

/* Very small devices (iPhone SE, etc.) */
@media (max-width: 375px) {
    .hero-section {
        padding-top: 90px;
        padding-bottom: 1rem;
    }
    
    .hero-section h1 {
        font-size: 1.6rem !important;
        line-height: 1.1 !important;
        margin-bottom: 0.8rem !important;
    }
    
    .hero-section p {
        font-size: 0.95rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1.2rem !important;
    }
    
    .hero-section .btn {
        padding: 12px 18px;
        font-size: 14px;
        margin-bottom: 0.6rem !important;
    }
    
    .hero-section .container {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
}

/* Tablet hero adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section .btn {
        max-width: 240px;
        margin-bottom: 0.75rem !important;
    }
    
    .hero-section .btn + .btn {
        margin-left: 1rem !important;
    }
    
    .hero-buttons {
        gap: 0.75rem;
    }
    
    .cta-section .btn {
        max-width: 240px;
        margin-bottom: 0.75rem !important;
    }
    
    .cta-section .btn + .btn {
        margin-left: 1rem !important;
    }
    
    .cta-buttons {
        gap: 0.75rem;
    }
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: rgba(33, 37, 41, 0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
}

.navbar-brand:hover {
    color: var(--accent-color) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 5px;
    margin: 0.25rem 0;
    border: 2px solid transparent;
}

.nav-link:hover {
    color: var(--accent-color) !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: var(--accent-color) !important;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--accent-color);
    font-weight: 600;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.3);
    animation: activePulse 2s ease-in-out infinite;
}

@keyframes activePulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 193, 7, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 193, 7, 0.5);
    }
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .navbar-collapse {
        background-color: rgba(33, 37, 41, 0.98);
        border-radius: 10px;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        backdrop-filter: blur(10px);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .nav-link {
        margin: 0.5rem 0;
        padding: 0.75rem 1rem !important;
        border-radius: 5px;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: translateX(5px);
    }
    
    .nav-link.active {
        background-color: rgba(255, 255, 255, 0.2);
        border: 2px solid var(--accent-color);
        color: var(--accent-color) !important;
        font-weight: 600;
        transform: translateX(5px) scale(1.05);
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.5rem;
        transition: all 0.3s ease;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    }
    
    .navbar-toggler:hover {
        transform: scale(1.1);
    }
}

/* Extra small mobile adjustments */
@media (max-width: 575.98px) {
    .navbar {
        padding: 0.25rem 0.75rem;
    }
    
.hero-section {
        padding-top: 120px; /* Even more padding for very small screens */
        min-height: calc(100vh - 48px);
    }
    
    .hero-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    
    .filter-btn {
        width: 100%;
        max-width: 280px;
        margin-bottom: 12px;
        font-size: 0.9rem;
        padding: 10px 16px;
    }
    
    /* Extra small mobile row alignment */
    .row.justify-content-center {
        justify-content: center !important;
        margin: 0;
    }
    
    .row.justify-content-center > * {
        text-align: center !important;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    
    /* Ensure all centered content stays centered */
    .text-center {
        text-align: center !important;
    }
    
    /* Contact information mobile adjustments */
    .contact-info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-bottom: 1rem;
        margin-right: 0 !important;
    }
    
    .contact-text {
        text-align: center;
    }
    
    .contact-text h5,
    .contact-text p {
        text-align: center;
    }
    
    /* Footer contact info mobile adjustments */
    footer .contact-info-item {
        flex-direction: column;
        text-align: center;
    }
    
    footer .contact-icon {
        margin-bottom: 1rem;
        margin-right: 0 !important;
    }
    
    footer .contact-text {
        text-align: center;
    }
}

/* Hero Section */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

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

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-size: 3.5rem;
    font-weight: 700;
}

.hero-section p {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-size: 1.25rem;
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    margin: 0.5rem 0.5rem 0.5rem 0;
}

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

.btn-primary:hover {
    background: #0b5ed7;
    border-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Services Section */
.service-card {
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card .card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-card:hover .card {
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
}

.service-image {
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 10px;
}

.service-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.service-icon {
    color: var(--primary-color);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card .card-title {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card .card-text {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.service-card ul li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.service-card ul li i {
    color: var(--success-color);
    margin-right: 0.5rem;
}

/* Services Horizontal Layout */
.service-content {
    padding: 2rem 0;
}

.service-icon {
    text-align: center;
}

.service-image-container {
    text-align: center;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 15px;
}

.service-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: contain;
}

.service-image-container img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* New Modern Contact Section Design */
.contact-info-modern {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    height: 100%;
    border: 1px solid #e9ecef;
}

.contact-header-modern {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f8f9fa;
}

.contact-title-modern {
    color: var(--primary-color);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.contact-subtitle-modern {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 0;
    font-weight: 400;
}

.contact-info-list {
    margin-bottom: 2rem;
}

.contact-info-item-modern {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.contact-info-item-modern:last-child {
    border-bottom: none;
}

.contact-icon-modern {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.contact-details-modern {
    flex: 1;
}

.contact-label-modern {
    color: var(--dark-color);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value-modern {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.contact-link-modern {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link-modern:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* Social Media Modern */
.social-modern {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 2px solid #f8f9fa;
}

.social-title-modern {
    color: var(--dark-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-buttons-modern {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-btn-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    color: #6c757d;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-btn-modern:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    text-decoration: none;
}

.social-btn-modern i {
    font-size: 1.1rem;
}

/* Contact Form Button Positioning - Redesigned Structure */
.contact-form-card {
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

.contact-form-card form {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
}

/* Form Fields Section */
.form-fields-section {
    flex: 1;
    margin-bottom: 2rem;
}

/* Form Buttons Section - Always at Bottom */
.form-buttons-section {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

.contact-form-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

/* About Section */
.about-image {
    margin-bottom: 1rem;
    padding: 5px;
    background: #f8f9fa;
    border-radius: 10px;
}

.about-image img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* About P-Orbit Advisory Section Images */
.about-hero img,
.company-story img,
.infrastructure-section img {
    padding: 5px;
    background: #f8f9fa;
    border-radius: 10px;
    object-fit: contain;
}

/* Specific styling for about page images */
.col-lg-6 img.img-fluid.rounded.shadow {
    padding: 5px;
    background: #f8f9fa;
    border-radius: 10px;
    object-fit: contain;
}

/* Team avatar images */
.team-avatar img {
    object-fit: contain !important;
    background: #f8f9fa;
    padding: 5px;
    border-radius: 50%;
}

/* Mobile layout for About P-Orbit Advisory sections */
@media (max-width: 768px) {
    /* About Images Grid - Change from 2x2 to vertical list on mobile */
    .col-lg-6 .row.g-3 {
        display: block !important;
    }
    
    .col-lg-6 .row.g-3 .col-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        margin-bottom: 2rem;
    }
    
    .col-lg-6 .about-image {
        padding: 10px;
        background: #f8f9fa;
        border-radius: 15px;
        margin-bottom: 1rem;
    }
    
    .col-lg-6 .about-image img {
        height: 250px !important;
        object-fit: contain;
        width: 100%;
    }
    
    /* Business Areas - Stack vertically on mobile */
    .business-area-card {
        margin-bottom: 2rem;
        padding: 1.5rem !important;
    }
    
    .business-area-card i {
        font-size: 4rem !important;
        margin-bottom: 1rem !important;
    }
    
    .business-area-card h5 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    /* Team Section - Stack vertically on mobile with larger images */
    .team-member {
        margin-bottom: 3rem;
        padding: 1.5rem;
        background: white;
        border-radius: 15px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .team-avatar img {
        width: 200px !important;
        height: 200px !important;
        margin-bottom: 1.5rem;
    }
    
    .team-member h4 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .team-member p {
        font-size: 1.1rem;
        line-height: 1.6;
    }
}

.about-image:hover img {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}


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

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    outline: none;
}

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

/* Cards */
.card {
    border-radius: 15px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-body {
    padding: 2rem;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 2rem;
}

footer .contact-info-item {
    transition: all 0.3s ease;
}

footer .contact-info-item:hover {
    transform: translateY(-2px);
}

footer .contact-text {
    flex: 1;
}

footer h3 {
    color: var(--accent-color);
    font-weight: 600;
}

footer .lead {
    color: rgba(255, 255, 255, 0.8);
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

footer .social-links a {
    transition: all 0.3s ease;
    display: inline-block;
    margin: 0 0.5rem;
    font-size: 1.5rem;
    padding: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    width: 60px;
    height: 60px;
    line-height: 40px;
    text-align: center;
}

footer .social-links a:hover {
    transform: translateY(-3px);
    color: var(--accent-color) !important;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

footer hr {
    border-width: 1px;
    opacity: 0.2;
}

footer .fa-2x {
    font-size: 1.5rem;
}

footer .d-flex {
    transition: all 0.3s ease;
}

footer .d-flex:hover {
    transform: translateY(-2px);
}

/* Page-specific styles */
.services-hero, .about-hero, .contact-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 3px solid var(--accent-color);
    padding-top: 120px; /* Account for fixed navbar */
    margin-top: 0;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

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


/* Contact Form Styles */
.contact-card, .contact-form-card {
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-card:hover, .contact-form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.contact-icon {
    width: 60px;
    text-align: center;
}

.contact-text {
    flex: 1;
}

.contact-info-item {
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    transform: translateX(5px);
}

.social-link {
    transition: all 0.3s ease;
    display: inline-block;
}

.social-link:hover {
    transform: translateY(-3px);
    color: var(--accent-color) !important;
}

/* Map Placeholder */
.map-placeholder {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* FAQ Styles */
.accordion-item {
    border: none;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.accordion-button {
    border-radius: 10px;
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

/* Statistics Cards */
.stat-card {
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
}

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

.stat-number {
    color: var(--primary-color);
}

/* Value Cards */
.value-card {
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    height: 100%;
}

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

/* Team Member */
.team-member {
    background: white;
    padding: 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

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

.team-avatar img {
    border: 4px solid var(--primary-color);
}

/* Feature Icons */
.feature-icon {
    transition: all 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1);
}

/* CTA Sections */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #495057 100%);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    
    .filter-btn {
        margin-bottom: 0;
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    /* Extra small devices */
    @media (max-width: 575.98px) {
        
        .filter-btn {
            max-width: 100%;
            font-size: 13px;
            padding: 8px 12px;
        }
    }
    
    .contact-info .row {
        flex-direction: column-reverse;
    }
    
    /* Contact information tablet adjustments */
    .contact-info-item {
        margin-bottom: 1.5rem;
    }
    
    .contact-icon {
        min-width: 50px;
    }
    
    .contact-text {
        flex: 1;
    }
    
    /* Responsive row alignment for mobile */
    .row.justify-content-center {
        justify-content: center !important;
    }
    
    .row.justify-content-center > * {
        text-align: center;
    }
    
    /* Ensure columns are centered on mobile */
    .col-12.text-center {
        text-align: center !important;
    }
    
    /* Mobile-first responsive grid */
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .row > * {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Section Spacing */
section {
    padding: 80px 0;
}

section:first-of-type {
    padding-top: 0;
}

/* Typography */
.display-3, .display-5 {
    font-weight: 700;
    line-height: 1.2;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
}

/* Project Details Page Styles */
.project-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.project-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.project-hero .container {
    position: relative;
    z-index: 2;
}

.project-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.project-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.project-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.project-meta {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.meta-item {
    text-align: center;
    padding: 15px;
}

.meta-item i {
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: block;
}

.meta-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.meta-value {
    display: block;
    font-weight: 600;
    font-size: 1rem;
}

.project-overview {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.challenge-solution {
    margin-bottom: 40px;
}

.challenge h4, .solution h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.challenge, .solution {
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid;
}

.challenge {
    background: #fff8e1;
    border-left-color: #ff9800;
}

.solution {
    background: #e8f5e8;
    border-left-color: #4caf50;
}

.technologies h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.tech-tag:hover {
    transform: translateY(-2px);
}

.results-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    height: fit-content;
}

.results-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.results-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
}

.results-list li:last-child {
    border-bottom: none;
}

.project-photos {
    background: #f8f9fa;
}

.photo-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.photo-wrapper {
    position: relative;
    overflow: hidden;
}

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

.photo-card:hover .photo-wrapper img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.photo-overlay i {
    color: white;
    font-size: 2rem;
}

.photo-caption {
    padding: 20px;
}

.photo-caption p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.project-videos {
    padding: 80px 0;
}

.video-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 20px;
}

.video-info h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.video-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-section .lead {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    display: inline-block;
}

.breadcrumb-item a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb-item a:hover {
    opacity: 0.8;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
}

/* Tablet responsive adjustments */
@media (max-width: 991.98px) and (min-width: 768px) {
    
    .filter-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
}

@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
        margin: 0.5rem 0.25rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .service-content {
        padding: 1rem 0;
        text-align: center;
    }
    
    .service-icon {
        margin-bottom: 2rem;
    }
    
    .service-image-container {
        margin-bottom: 2rem;
    }
    
    /* Contact Section Mobile */
    .contact-info-section {
        padding: 1.5rem;
    }
    
    .contact-title {
        font-size: 1.5rem;
    }
    
    .contact-cards {
        gap: 1rem;
    }
    
    .contact-card-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .contact-card-icon {
        width: 45px;
        height: 45px;
        margin: 0 auto;
    }
    
    .social-links-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .social-link-item {
        justify-content: center;
        padding: 0.75rem;
    }
    
    /* Contact Form Mobile */
    .contact-form-card {
        min-height: 500px;
    }
    
    .form-fields-section {
        margin-bottom: 1.5rem;
    }
    
    .form-buttons-section {
        padding-top: 1rem;
    }
    
    .contact-form-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .contact-form-buttons .btn {
        width: 100%;
        margin: 0;
    }
    
    /* Contact Info Modern Mobile - Same layout as desktop */
    .contact-info-modern {
        padding: 1.5rem;
    }
    
    .contact-title-modern {
        font-size: 1.4rem; /* Smaller than desktop but not too small */
    }
    
    .contact-subtitle-modern {
        font-size: 0.9rem; /* Smaller subtitle */
    }
    
    .contact-info-item-modern {
        /* Keep same layout as desktop - no flex-direction change */
        gap: 0.75rem;
        padding: 1rem 0;
    }
    
    .contact-icon-modern {
        width: 40px; /* Slightly smaller icons */
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-label-modern {
        font-size: 0.85rem; /* Smaller labels */
    }
    
    .contact-value-modern {
        font-size: 0.85rem; /* Smaller text */
    }
    
    .contact-link-modern {
        font-size: 0.85rem; /* Smaller links */
    }
    
    .social-title-modern {
        font-size: 0.9rem; /* Smaller social title */
    }
    
    .social-btn-modern {
        width: 40px; /* Smaller social buttons */
        height: 40px;
    }
    
    .social-btn-modern i {
        font-size: 1rem; /* Smaller social icons */
    }
    
    .about-image {
        padding: 4px;
    }
    
    .col-lg-6 img.img-fluid.rounded.shadow {
        padding: 4px;
    }
    
    .about-image img {
        height: 180px;
        object-fit: contain;
    }
    
    
    section {
        padding: 60px 0;
    }
    
    /* Tablet responsive row alignment */
    .row.justify-content-center {
        justify-content: center !important;
    }
    
    .row.justify-content-center > * {
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 0.95rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 0.85rem;
        margin: 0.25rem 0.25rem;
        display: block;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .about-image {
        padding: 3px;
    }
    
    .col-lg-6 img.img-fluid.rounded.shadow {
        padding: 3px;
    }
    
    .about-image img {
        height: 150px;
        object-fit: contain;
    }
    
    
    
    .card-body {
        padding: 1.5rem;
    }
    
section {
        padding: 50px 0;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section p {
        font-size: 0.9rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
}

.lead {
        font-size: 1.1rem;
    }
    
    .about-image {
        padding: 2px;
    }
    
    .col-lg-6 img.img-fluid.rounded.shadow {
        padding: 2px;
    }
    
    /* Additional mobile styles for About P-Orbit Advisory sections */
    .business-area-card {
        margin-bottom: 1.5rem;
        padding: 1rem !important;
    }
    
    .business-area-card i {
        font-size: 3rem !important;
    }
    
    .team-member {
        margin-bottom: 2rem;
        padding: 1rem;
    }
    
    .team-avatar img {
        width: 150px !important;
        height: 150px !important;
    }
    
    /* About Images - Smaller mobile optimization */
    .col-lg-6 .row.g-3 .col-6 {
        margin-bottom: 1.5rem;
    }
    
    .col-lg-6 .about-image {
        padding: 8px;
    }
    
    .col-lg-6 .about-image img {
        height: 200px !important;
    }
    
    .about-image img {
        height: 120px;
        object-fit: contain;
    }
    
    
    .service-content {
        padding: 0.5rem 0;
        text-align: center;
    }
    
    .service-icon {
        margin-bottom: 1.5rem;
    }
    
    .service-image-container {
        margin-bottom: 1.5rem;
    }
    
    /* Contact Section Small Mobile */
    .contact-info-section {
        padding: 1rem;
    }
    
    .contact-title {
        font-size: 1.3rem;
    }
    
    .contact-card-item {
        padding: 0.75rem;
    }
    
    .contact-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-card-title {
        font-size: 1rem;
    }
    
    .contact-card-text {
        font-size: 0.9rem;
    }
    
    /* Contact Form Small Mobile */
    .contact-form-card {
        min-height: 450px;
    }
    
    .form-fields-section {
        margin-bottom: 1rem;
    }
    
    .form-buttons-section {
        padding-top: 1rem;
    }
    
    .contact-form-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .contact-form-buttons .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    /* Contact Info Modern Small Mobile - Same layout as desktop */
    .contact-info-modern {
        padding: 1rem;
    }
    
    .contact-title-modern {
        font-size: 1.2rem; /* Even smaller for small mobile */
    }
    
    .contact-subtitle-modern {
        font-size: 0.85rem; /* Smaller subtitle */
    }
    
    .contact-info-item-modern {
        /* Keep same layout as desktop - no flex-direction change */
        gap: 0.5rem;
        padding: 0.75rem 0;
    }
    
    .contact-icon-modern {
        width: 35px; /* Smaller icons for small mobile */
        height: 35px;
        font-size: 0.9rem;
    }
    
    .contact-label-modern {
        font-size: 0.8rem; /* Smaller labels */
    }
    
    .contact-value-modern {
        font-size: 0.8rem; /* Smaller text */
    }
    
    .contact-link-modern {
        font-size: 0.8rem; /* Smaller links */
    }
    
    .social-title-modern {
        font-size: 0.85rem; /* Smaller social title */
    }
    
    .social-btn-modern {
        width: 35px; /* Smaller social buttons */
        height: 35px;
    }
    
    .social-btn-modern i {
        font-size: 0.9rem; /* Smaller social icons */
    }
    
    
    .card-body {
        padding: 1rem;
    }
    
    section {
        padding: 40px 0;
    }
}

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

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

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

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success/Error Messages */
.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0b5ed7;
}

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

.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Enhanced responsive utilities */
.justify-content-center {
    justify-content: center !important;
}

.text-center {
    text-align: center !important;
}

/* Mobile-first responsive grid enhancements */
@media (max-width: 1199.98px) {
    .justify-content-center {
        justify-content: center !important;
    }
}

@media (max-width: 991.98px) {
    .justify-content-center {
        justify-content: center !important;
    }
}

@media (max-width: 767.98px) {
    .justify-content-center {
        justify-content: center !important;
    }
    
    .text-center {
        text-align: center !important;
    }
}

@media (max-width: 575.98px) {
    .justify-content-center {
        justify-content: center !important;
    }
    
    .text-center {
        text-align: center !important;
    }
}

/* Fix for Bootstrap navbar collapse */
.navbar-collapse.collapsing {
    height: auto;
}

.navbar-collapse.show {
    display: block !important;
}

/* Project Details Mobile Responsive Styles */
@media (max-width: 767.98px) {
    .project-hero {
        padding: 100px 0 60px;
    }
    
    .project-title {
        font-size: 2.5rem;
    }
    
    .project-description {
        font-size: 1.1rem;
    }
    
    .project-meta {
        padding: 25px;
    }
    
    .meta-item {
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .challenge, .solution {
        padding: 20px;
    }
    
    .results-card {
        margin-top: 30px;
    }
    
    .photo-wrapper img {
        height: 220px;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section .btn {
        margin-bottom: 15px;
    }
}

@media (max-width: 575.98px) {
    .project-hero {
        padding: 80px 0 50px;
    }
    
    .project-title {
        font-size: 2rem;
    }
    
    .project-description {
        font-size: 1rem;
    }
    
    .project-meta {
        padding: 20px;
    }
    
    .meta-item {
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .meta-item i {
        font-size: 1.2rem;
    }
    
    .meta-value {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .challenge, .solution {
        padding: 15px;
    }
    
    .challenge h4, .solution h4 {
        font-size: 1.1rem;
    }
    
    .tech-tags {
        justify-content: center;
    }
    
    .tech-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .results-card {
        padding: 20px;
        margin-top: 30px;
    }
    
    .results-card h4 {
        font-size: 1.1rem;
    }
    
    .photo-wrapper img {
        height: 180px;
    }
    
    .photo-caption {
        padding: 15px;
    }
    
    .video-info {
        padding: 15px;
    }
    
    .video-info h5 {
        font-size: 1rem;
    }
    
    .cta-section h2 {
        font-size: 1.6rem;
    }
    
    .cta-section .lead {
        font-size: 1rem;
    }
    
    .cta-section .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .breadcrumb {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}
