/* Corporate Team Building Website - Main CSS */

/* CSS Variables - Color Palette */
:root {
    /* Primary Colors */
    --primary-blue: #3c65ce;
    --primary-teal: #2c9585;
    --primary-orange: #ffa130;
    --primary-purple: #6c64f5;
    --primary-green: #50b941;
    
    /* Light Shades */
    --light-blue: #d9e2f2;
    --light-teal: #dfe2e2;
    --light-orange: #ffe3d0;
    --light-purple: #F0EDFF;
    --light-green: #eeffeb;
    
    /* Dark Shades */
    --dark-blue: #172f5a;
    --dark-teal: #127273;
    --dark-orange: #cf4e20;
    --dark-purple: #5e3eb3;
    --dark-green: #4c9642;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --medium-gray: #5e666e;
    --dark-gray: #3d464b;
    --black: #000000;
    
    /* Typography */
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --line-height-base: 1.5;
    
    /* Spacing */
    --section-padding: 5rem;
    --card-padding: 2rem;
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--dark-gray);
    overflow-x: hidden;
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus Indicators for Better Accessibility */
*:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

/* Skip to Main Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 8px 16px;
    text-decoration: none;
    border-radius: var(--border-radius);
    z-index: 1000;
    font-weight: 600;
}

.skip-link:focus {
    top: 6px;
    outline: 3px solid var(--primary-orange);
}

/* Screen Reader Only Content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Image Loading States */
img {
    max-width: 100%;
    height: auto;
}

img[data-src] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[data-src].loaded {
    opacity: 1;
}

/* Error Handling for Missing Images */
img {
    background: var(--light-gray);
    border: 1px solid var(--medium-gray);
}

/* Print Styles */
@media print {
    .navbar,
    .breadcrumb,
    footer,
    .btn,
    .back-to-top {
        display: none !important;
    }
    
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        background: none !important;
        color: var(--dark-gray) !important;
        padding: 1rem 0;
    }
    
    .hero-section h1,
    .hero-section h2,
    .hero-section p {
        color: var(--dark-gray) !important;
    }
    
    * {
        box-shadow: none !important;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

h1 { font-size: 2.26rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.54rem; }
h4 { font-size: 1.39rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--medium-gray);
}

/* Header */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.59rem;
    color: var(--primary-blue) !important;
    text-decoration: none;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-gray) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: var(--light-blue);
    color: var(--primary-blue) !important;
}

/* Hero Section */
.hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-teal) 100%);
    color: var(--white);
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: var(--white);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section h2 {
    color: var(--light-blue);
    font-size: 1.60rem;
    font-weight: 400;
    margin-bottom: 1.58rem;
}

.hero-section p {
    color: var(--white);
    font-size: var(--font-size-lg);
    opacity: 0.9;
}

/* Cards */
.feature-card,
.service-card,
.price-card,
.review-card,
.case-study-card,
.career-card,
.info-card,
.element-card,
.blog-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--card-padding);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover,
.service-card:hover,
.case-study-card:hover,
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Service Cards */
.service-card .card-img-top {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.service-card .price {
    background: var(--primary-orange);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    margin-top: 1rem;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.service-card ul li {
    padding: 0.25rem 0;
    color: var(--medium-gray);
}

.service-card ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-green);
    margin-right: 0.5rem;
}

/* Price Cards */
.price-card {
    position: relative;
    border: 2px solid transparent;
}

.price-card.featured {
    border-color: var(--primary-orange);
    transform: scale(1.05);
}

.price-card .price-value {
    background: var(--primary-blue);
    color: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    font-size: 1.52rem;
    font-weight: 700;
    text-align: center;
    margin-top: 1rem;
}

.price-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.price-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-gray);
    color: var(--medium-gray);
}

.price-card ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-green);
    margin-right: 0.5rem;
}

/* Team Section */
.team-member img {
    border: 4px solid var(--primary-teal);
    transition: all 0.3s ease;
}

.team-member:hover img {
    border-color: var(--primary-orange);
}

/* Reviews */
.review-card {
    background: var(--light-blue);
    border-left: 4px solid var(--primary-blue);
}

.review-card p {
    font-style: italic;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.review-card h5 {
    color: var(--primary-blue);
    font-size: var(--font-size-base);
    margin-bottom: 0;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-blue);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 2rem 0;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    width: 45%;
}

.timeline-item:nth-child(odd) {
    margin-left: 0;
}

.timeline-item:nth-child(even) {
    margin-left: 55%;
}

.timeline-date {
    background: var(--primary-orange);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Process Steps */
.process-step {
    position: relative;
    padding: 2rem 1rem;
}

.step-number {
    background: var(--primary-purple);
    color: var(--white);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.37rem;
    margin: 0 auto 1rem;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form .form-control {
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: var(--font-size-base);
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(31, 64, 171, 0.25);
}

.contact-info {
    background: var(--light-teal);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    height: fit-content;
}

.contact-info h4 {
    color: var(--primary-teal);
    margin-bottom: 1.66rem;
}

.contact-info p {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    color: var(--primary-teal);
    margin-right: 1rem;
    width: 20px;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* FAQ */
.accordion-item {
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    background: var(--light-blue);
    color: var(--dark-blue);
    font-weight: 600;
    border: none;
    padding: 1rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-blue);
    color: var(--white);
}

.accordion-body {
    background: var(--white);
    padding: 1.5rem;
}

/* Gallery */
.gallery-img {
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Footer */
footer {
    background: var(--dark-gray) !important;
    color: var(--white);
}

footer h4, footer h5 {
    color: var(--white);
    margin-bottom: 1.62rem;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.66rem;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary-teal);
}

footer .list-unstyled {
    list-style: none;
    padding: 0;
}

footer .list-unstyled li {
    margin-bottom: 0.62rem;
}

/* Icons */
.fas, .fa {
    color: var(--primary-blue);
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 1rem 0;
}

.breadcrumb-item img {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.breadcrumb-item img:hover {
    opacity: 1;
}

/* Space div for index_space.html */
#space {
    min-height: 60vh;
    background: linear-gradient(45deg, var(--light-blue), var(--light-teal));
    margin-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#space::before {
    content: 'Interactive Space';
    color: var(--medium-gray);
    font-size: 2rem;
    font-weight: 300;
    opacity: 0.5;
}

/* Utilities */
.bg-light {
    background-color: var(--light-gray) !important;
}

.text-center {
    text-align: center;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* Responsive Grid Fix */
@media (min-width: 992px) {
    .col-lg-2-4 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Production-Ready Enhancements */

/* Better Button Focus States */
.btn:focus-visible {
    outline: 3px solid var(--primary-orange);
    outline-offset: 2px;
}

/* Form Validation States */
.form-control.is-valid {
    border-color: var(--primary-green);
    background-image: none;
}

.form-control.is-invalid {
    border-color: #c92728;
    background-image: none;
}

.invalid-feedback {
    color: #d72f51;
    font-size: 1.02rem;
    margin-top: 0.38rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    z-index: 999;
    font-size: 18px;
    box-shadow: var(--shadow-lg);
}

/* Performance: Hardware Acceleration */
.hero-section,
.feature-card,
.service-card,
.gallery-img {
    transform: translateZ(0);
    will-change: transform;
}

/* Image Error Handling */
img::before {
    content: "ð· Image Loading...";
    color: var(--medium-gray);
    font-size: 0.97rem;
    display: block;
    text-align: center;
    padding: 2rem;
}

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimizations for high-DPI displays */
    .navbar-brand {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}


/* Team Social Links - Elegant Style */
.team-social-links {
    margin-top: 24px;
    padding: 18px 0;
}

.social-icons-grid {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 17px;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    color: white;
}

.facebook-link {
    background: rgba(24, 119, 242, 0.9);
}

.facebook-link:hover {
    background: rgba(24, 119, 242, 1);
    box-shadow: 0 8px 30px rgba(24, 119, 242, 0.4);
}

.linkedin-link {
    background: rgba(10, 102, 194, 0.9);
}

.linkedin-link:hover {
    background: rgba(10, 102, 194, 1);
    box-shadow: 0 8px 30px rgba(10, 102, 194, 0.4);
}

.x-link {
    background: rgba(0, 0, 0, 0.9);
    position: relative;
}

.x-link::after {
    content: '𝕏';
    font-weight: bold;
    font-size: 19px;
    z-index: 2;
    position: relative;
}

.x-link:hover {
    background: rgba(0, 0, 0, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 12px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
}
