/* Root Variables - 5 Primary Colors + Shades */
:root {
    --primary-color: #666dff;
    --secondary-color: #714bff;
    --accent-color: #00b8d8;
    --success-color: #08a66b;
    --warning-color: #ffa315;
    
    /* Light Shades */
    --primary-light: #a0abf1;
    --secondary-light: #cbb8f6;
    --accent-light: #57d4ec;
    --success-light: #86fbc7;
    --warning-light: #efa93a;
    
    /* Dark Shades */
    --primary-dark: #4525c4;
    --secondary-dark: #773cef;
    --accent-dark: #178dc4;
    --success-dark: #00815d;
    --warning-dark: #e27a15;
    
    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #d8ddec;
    --gray-300: #dddddd;
    --gray-400: #afb5bd;
    --gray-500: #606673;
    --gray-600: #424953;
    --gray-700: #374558;
    --gray-800: #0e171e;
    --gray-900: #080a11;
    
    /* Typography */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --container-max-width: 1200px;
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-smooth: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Border Radius */
    --border-radius-sm: 0.375rem;
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
        scroll-behavior: auto;
    }
}

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--gray-700);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Typography - Conservative Sizes */
h1 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

h2 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    line-height: 1.3;
    color: var(--gray-800);
    margin-bottom: 0.96rem;
}

h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    line-height: 1.4;
    color: var(--gray-700);
    margin-bottom: 0.69rem;
}

h4 {
    font-size: var(--font-size-lg);
    font-weight: 500;
    line-height: 1.4;
    color: var(--gray-700);
    margin-bottom: 0.60rem;
}

h5 {
    font-size: var(--font-size-base);
    font-weight: 500;
    line-height: 1.5;
    color: var(--gray-700);
    margin-bottom: 0.34rem;
}

p {
    font-size: var(--font-size-base);
    margin-bottom: 1rem;
    color: var(--gray-600);
}

/* Navbar Styling */
.navbar-brand {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.navbar-brand:hover {
    color: var(--primary-dark);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--gray-700);
    padding: 0.5rem 1rem;
    transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    position: relative;
    padding-top: 80px;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../TEC_images/hero-bg.webp') center/cover no-repeat;
    opacity: 0.1;
    z-index: 1;
}

#hero .container {
    position: relative;
    z-index: 2;
}

#hero h1 {
    color: var(--gray-900);
    font-size: var(--font-size-4xl);
    margin-bottom: 1rem;
}

#hero h2 {
    color: var(--primary-color);
    font-size: var(--font-size-2xl);
    margin-bottom: 1.65rem;
}

#hero p {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* Section Styling */
section {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--gray-50);
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 9px 6px -1px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    border: 1px solid var(--gray-200);
}

.feature-card:hover {
    transform: translateY(-9px);
    box-shadow: 0 15px 25px -3px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 6px -1px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-9px);
    box-shadow: 0 16px 25px -3px rgba(0, 0, 0, 0.1);
}

.service-card .card-img-top {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.service-card .card-body {
    padding: 1.5rem;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.service-card ul li {
    padding: 0.25rem 0;
    color: var(--gray-600);
}

.service-card ul li:before {
    content: '✓';
    color: var(--success-color);
    margin-right: 0.5rem;
    font-weight: bold;
}

.service-card .price {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 1rem;
}

/* Feature Items */
.feature-item {
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    border-left: 7px solid var(--primary-color);
    box-shadow: 0 6px 7px rgba(0, 0, 0, 0.1);
    transition: var(--transition-fast);
}

.feature-item:hover {
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.15);
}

.feature-item i {
    color: var(--primary-color);
}

/* Pricing Cards */
.pricing-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: 0 8px 6px -1px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    border: 7px solid transparent;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 13px 25px -3px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.price-tag {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

.price-tag span {
    font-size: var(--font-size-base);
    color: var(--gray-500);
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.pricing-card ul li {
    padding: 0.5rem 0;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-100);
}

.pricing-card ul li:before {
    content: '✓';
    color: var(--success-color);
    margin-right: 0.5rem;
    font-weight: bold;
}

/* Team Members */
.team-member img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid var(--primary-light);
}

.team-member h4 {
    color: var(--gray-800);
    margin-top: 1rem;
}

.team-member p {
    color: var(--primary-color);
    font-weight: 500;
}

/* Review Cards */
.review-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 5px 4px rgba(0, 0, 0, 0.1);
    transition: var(--transition-fast);
    border-left: 4px solid var(--accent-color);
}

.review-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.review-card p {
    font-style: italic;
    color: var(--gray-700);
    margin-bottom: 1rem;
}

.review-card h5 {
    color: var(--primary-color);
    font-weight: 600;
}

/* Case Study Cards */
.case-study-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}

.case-study-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 11px 25px -3px rgba(0, 0, 0, 0.1);
}

.case-study-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.case-study-card .card-body {
    padding: 1.5rem;
}

/* Process Steps */
.process-step {
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin: 0 auto 1rem;
}

.process-step h4 {
    color: var(--gray-800);
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 7px;
    height: 100%;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin: 2rem 0;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 2rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 2rem;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border-style: solid;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -12px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

/* Career Cards */
.career-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: var(--transition-fast);
    border: 1px solid var(--gray-200);
}

.career-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.career-card .role {
    color: var(--primary-color);
    font-weight: 500;
    font-size: var(--font-size-sm);
}

/* Info Cards */
.info-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    border: 1px solid var(--gray-200);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.info-card i {
    color: var(--accent-color);
}

/* Element Cards (for additional pages) */
.element-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: var(--transition-fast);
    border: 1px solid var(--gray-200);
    height: 100%;
}

.element-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

/* Contact Form */
.contact-form .form-control {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: var(--font-size-base);
    transition: var(--transition-fast);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(112, 132, 234, 0.25);
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-info i {
    color: var(--primary-color);
    width: 20px;
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    border: 1px solid var(--gray-200);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.blog-card .card-body {
    padding: 1.5rem;
}

/* FAQ Accordion */
.accordion-button {
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
    color: var(--gray-800);
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-dark);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(85, 73, 222, 0.25);
}

.accordion-body {
    background-color: white;
    border: 1px solid var(--gray-200);
    border-top: none;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: var(--transition-fast);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color));
    color: var(--gray-300);
}

footer h5 {
    color: white;
    margin-bottom: 1rem;
}

footer a {
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition-fast);
}

footer a:hover {
    color: var(--primary-light);
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 0.65rem;
}

/* Breadcrumbs */
.breadcrumb-section {
    padding-top: 80px;
}

.breadcrumb-icon {
    height: 24px;
    width: auto;
}

/* Gallery */
#gallery img {
    transition: var(--transition-smooth);
    border-radius: var(--border-radius);
}

#gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.2);
}

/* Space Page */
#space {
    background: linear-gradient(135deg, var(--accent-light), var(--primary-light));
    color: var(--gray-800);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) 1;
}

/* Image Aspect Ratios */
.img-aspect-16-9 {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.img-aspect-1-1 {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Cookie Banner */
.cookie-banner {
    z-index: 1050;
}

/* Active Navigation State */
.navbar-nav .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Enhanced Card Styles */
.service-card,
.pricing-card,
.case-study-card,
.blog-card {
    transition: var(--transition-smooth);
    border: 1px solid var(--gray-200);
}

/* Image Hover Effects */
.service-card .card-img-top,
.case-study-card .card-img-top,
.blog-card .card-img-top {
    transition: var(--transition-smooth);
}

.service-card:hover .card-img-top,
.case-study-card:hover .card-img-top,
.blog-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Smooth Scroll Padding */
html {
    scroll-padding-top: 80px;
}

/* Focus Visible for Accessibility */
.btn:focus-visible,
.nav-link:focus-visible,
.form-control:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Form Enhancements */
.form-control::placeholder {
    color: var(--gray-400);
    opacity: 1;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Button Loading State */
.btn.loading {
    position: relative;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Alert Styles */
.alert {
    border-radius: var(--border-radius);
    border: none;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: var(--success-light);
    color: var(--success-dark);
}

.alert-danger {
    background-color: #f4e6e7;
    color: #db374b;
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 9999;
    transition: width 0.1s ease;
} 


/* 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;
    }
}
