/* ===== COLOR PALETTE & ROOT VARIABLES ===== */
:root {
    /* Primary Color Palette - 5 high contrast pastel colors */
    --primary-blue: #4a90e2;
    --primary-blue-light: #e3f2fd;
    --primary-blue-dark: #1565c0;
    
    --primary-green: #7cb342;
    --primary-green-light: #e8f5e8;
    --primary-green-dark: #388e3c;
    
    --primary-purple: #8e24aa;
    --primary-purple-light: #f3e5f5;
    --primary-purple-dark: #4a148c;
    
    --primary-orange: #ff7043;
    --primary-orange-light: #fff3e0;
    --primary-orange-dark: #d84315;
    
    --primary-teal: #26a69a;
    --primary-teal-light: #e0f2f1;
    --primary-teal-dark: #00695c;
    
    /* Neutral Colors */
    --neutral-light: #f8f9fa;
    --neutral-gray: #6c757d;
    --neutral-dark: #212529;
    
    /* Font sizes - conservative approach */
    --font-size-small: 0.875rem;
    --font-size-base: 1rem;
    --font-size-h6: 1.125rem;
    --font-size-h5: 1.25rem;
    --font-size-h4: 1.375rem;
    --font-size-h3: 1.5rem;
    --font-size-h2: 1.75rem;
    --font-size-h1: 2rem;
    
    /* Spacing */
    --section-padding: 4rem 0;
    --card-padding: 1.5rem;
    --border-radius: 0.375rem;
}

/* ===== GLOBAL STYLES ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--neutral-dark);
}

/* Typography */
h1 { font-size: var(--font-size-h1); font-weight: 600; }
h2 { font-size: var(--font-size-h2); font-weight: 600; }
h3 { font-size: var(--font-size-h3); font-weight: 500; }
h4 { font-size: var(--font-size-h4); font-weight: 500; }
h5 { font-size: var(--font-size-h5); font-weight: 500; }
h6 { font-size: var(--font-size-h6); font-weight: 500; }

/* Conservative navbar brand size */
.navbar-brand {
    font-size: var(--font-size-h4) !important;
    font-weight: 600;
    color: var(--primary-blue) !important;
}

/* ===== PREFER REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue-light) 0%, var(--primary-teal-light) 100%);
    position: relative;
    padding-top: 100px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../TAS_images/hero-bg.webp') center/cover;
    opacity: 0.1;
    z-index: -1;
}

.hero-section h1 {
    color: var(--primary-blue-dark);
    margin-bottom: 1rem;
}

.hero-section h2 {
    color: var(--primary-teal);
    margin-bottom: 1.5rem;
}

/* ===== CARDS & COMPONENTS ===== */
.feature-card, .service-card, .review-card, .case-study-card, 
.blog-card, .pricing-card, .career-card, .info-card, .element-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--border-radius);
    padding: var(--card-padding);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.feature-card:hover, .service-card:hover, .review-card:hover, 
.case-study-card:hover, .blog-card:hover, .element-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Service Cards */
.service-card .price {
    font-size: var(--font-size-h4);
    font-weight: 600;
    color: var(--primary-green);
    margin-top: 1rem;
}

/* Pricing Cards */
.pricing-card.featured {
    border: 2px solid var(--primary-blue);
    transform: scale(1.05);
}

.price-large {
    font-size: var(--font-size-h2);
    font-weight: 700;
    color: var(--primary-blue);
    margin: 1rem 0;
}

/* Review Cards */
.stars {
    color: var(--primary-orange);
}

/* Process Steps */
.process-step .step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-purple);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: var(--font-size-h4);
    margin: 0 auto 1rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-blue);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -1.75rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-blue);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-blue-light);
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    font-weight: 500;
}

.btn-primary:hover {
    background: var(--primary-blue-dark);
    border-color: var(--primary-blue-dark);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* ===== FORMS ===== */
.form-control {
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    padding: 0.75rem;
    font-size: var(--font-size-base);
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

/* ===== GALLERY ===== */
#gallery img {
    transition: all 0.3s ease;
    height: 300px;
    object-fit: cover;
    width: 100%;
}

#gallery img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* ===== BREADCRUMB ===== */
.breadcrumb-nav {
    padding: 1rem 0;
    background: var(--neutral-light);
}

.breadcrumb-image {
    max-height: 40px;
    width: auto;
}

/* ===== SECTIONS ===== */
section {
    padding: var(--section-padding);
}

section.bg-light {
    background: var(--neutral-light);
}

/* ===== NAVBAR ===== */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
}

/* ===== FOOTER ===== */
footer {
    background: var(--neutral-dark) !important;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-blue-light) !important;
}

/* ===== FAQ ACCORDION ===== */
.accordion-button {
    font-weight: 500;
    color: var(--neutral-dark);
}

.accordion-button:not(.collapsed) {
    background: var(--primary-blue-light);
    color: var(--primary-blue-dark);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(74, 144, 226, 0.25);
}

/* ===== CONTACT INFO ===== */
.contact-info {
    background: var(--primary-blue-light);
    padding: var(--card-padding);
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

/* ===== UTILITIES ===== */
.text-primary { color: var(--primary-blue) !important; }
.bg-primary { background: var(--primary-blue) !important; }

/* Image sizing for consistent layout */
.card-img-top {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.team-member img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

/* ===== SPACE DIV (for index_space.html) ===== */
#space {
    min-height: 60vh;
    background: linear-gradient(45deg, var(--primary-purple-light), var(--primary-orange-light));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* ===== RESPONSIVE IMAGE CONTAINERS ===== */
.hero-section img,
.service-card img,
.case-study-card img,
.blog-card img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* Ensure all images maintain aspect ratios */
img {
    max-width: 100%;
    height: auto;
} 


/* Team Social Links - Colorful Style */
.team-social-links {
    margin-top: 22px;
    padding: 16px 0;
}

.social-icons-grid {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 19px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.social-link:hover::before {
    width: 100px;
    height: 100px;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: white;
}

.facebook-link {
    background: linear-gradient(45deg, #1877f2, #42a5f5, #64b5f6);
}

.linkedin-link {
    background: linear-gradient(45deg, #0a66c2, #2196f3, #42a5f5);
}

.x-link {
    background: linear-gradient(45deg, #000000, #424242, #666666);
    position: relative;
}

.x-link::after {
    content: '✕';
    font-weight: 900;
    font-size: 20px;
    z-index: 2;
    position: relative;
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 10px;
    }
    
    .social-link {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}
