/* JingleCraft - Main CSS */

/* Color Palette */
:root {
    --primary-1: #6f86ff;
    --primary-2: #9369fc;
    --primary-3: #f03cab;
    --primary-4: #ff8411;
    --primary-5: #18a26e;
    
    --primary-1-light: #aebcff;
    --primary-2-light: #bfa8ff;
    --primary-3-light: #ffbadf;
    --primary-4-light: #eed749;
    --primary-5-light: #56e6b5;
    
    --primary-1-dark: #5441ce;
    --primary-2-dark: #804bdc;
    --primary-3-dark: #d12e7f;
    --primary-4-dark: #e17013;
    --primary-5-dark: #029957;
    
    --white: #FFFFFF;
    --black: #000000;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #d6dde6;
    --gray-300: #cecece;
    --gray-400: #8b9aad;
    --gray-500: #64696e;
    --gray-600: #3e444a;
    --gray-700: #424e5b;
    --gray-800: #141c29;
    --gray-900: #141a2e;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    font-size: 14px;
    background-color: var(--white);
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

h1 {
    font-size: 2.58rem;
    background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2rem;
    color: var(--gray-900);
}

h3 {
    font-size: 1.59rem;
    color: var(--primary-1);
}

h4 {
    font-size: 1.39rem;
    color: var(--gray-800);
}

h5 {
    font-size: 1.25rem;
    color: var(--gray-700);
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--gray-600);
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.55rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--gray-700);
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-1);
    background-color: var(--primary-1-light);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-1) 0%, var(--primary-2) 50%, var(--primary-3) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../SMA_images/hero-bg.webp') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.58rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    padding-top: 250px;
}

.hero-section h2 {
    font-size: 1.53rem;
    color: var(--white);
    margin-bottom: 1.71rem;
    opacity: 0.9;
}

.hero-section p {
    font-size: 1.27rem;
    color: var(--white);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.hero-section img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 23px 25px -5px rgba(0, 0, 0, 0.2);
    width: 500px;
    height: 400px;
    object-fit: cover;
}

/* Section Padding */
.section-padding {
    padding: 5rem 0;
}

/* Feature Cards */
.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 5px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-1);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-1);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card h4 {
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.feature-card p {
    color: var(--gray-600);
    margin-bottom: 0;
}

/* Service Cards */
.service-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-2);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card .card-body {
    padding: 2rem;
}

.service-card h4 {
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray-600);
    margin-bottom: 1.61rem;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.57rem;
}

.service-card ul li {
    padding: 0.5rem 0;
    color: var(--gray-600);
    position: relative;
    padding-left: 1.5rem;
}

.service-card ul li::before {
    content: '“';
    position: absolute;
    left: 0;
    color: var(--primary-5);
    font-weight: bold;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-4), var(--primary-5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

/* Feature Items */
.feature-item {
    display: flex;
    align-items: flex-start;
    padding: 2rem;
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 5px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 13px 15px -3px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    font-size: 2.63rem;
    color: var(--primary-3);
    margin-right: 1.5rem;
    margin-top: 0.75rem;
}

.feature-item h4 {
    margin-bottom: 0.68rem;
    color: var(--gray-800);
}

.feature-item p {
    margin-bottom: 0;
    color: var(--gray-600);
}

/* Pricing Cards */
.pricing-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 9px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary-1);
    transform: scale(1.05);
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 25px -5px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-card h4 {
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.pricing-card p {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.pricing-card ul li {
    padding: 0.75rem 0;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-200);
}

.pricing-card ul li:last-child {
    border-bottom: none;
}

/* Team Members */
.team-member {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 6px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 15px -3px rgba(0, 0, 0, 0.1);
}

.team-photo {
    width: 122px;
    height: 125px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 6px solid var(--primary-1-light);
}

.team-member h4 {
    margin-bottom: 0.68rem;
    color: var(--gray-800);
}

.team-member p {
    color: var(--primary-1);
    margin-bottom: 0;
    font-weight: 500;
}

/* Review Cards */
.review-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 9px 6px -1px rgba(0, 0, 0, 0.1);
    height: 100%;
    border-left: 7px solid var(--primary-3);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 13px 15px -3px rgba(0, 0, 0, 0.1);
}

.review-card p {
    font-style: italic;
    margin-bottom: 1.61rem;
    color: var(--gray-700);
    font-size: 1.15rem;
}

.review-card h5 {
    color: var(--primary-1);
    margin-bottom: 0;
    font-weight: 600;
}

/* Case Study Cards */
.case-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 9px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.case-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.case-card .card-body {
    padding: 2rem;
}

.case-card h4 {
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.case-card p {
    color: var(--gray-600);
    margin-bottom: 0;
}

/* Process Steps */
.process-step {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.53rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    box-shadow: 0 5px 6px -1px rgba(0, 0, 0, 0.1);
}

.process-step h4 {
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.process-step p {
    color: var(--gray-600);
    margin-bottom: 0;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-1), var(--primary-3));
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-year {
    background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-weight: 700;
    margin: 0 2rem;
    min-width: 120px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.timeline-item h4 {
    color: var(--gray-800);
    margin-bottom: 0.58rem;
}

.timeline-item p {
    color: var(--gray-600);
    margin-bottom: 0;
}

/* Career Cards */
.career-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 9px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border-top: 9px solid var(--primary-4);
}

.career-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 15px -3px rgba(0, 0, 0, 0.1);
}

.career-card h4 {
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.career-card p {
    color: var(--gray-600);
    margin-bottom: 1.74rem;
}

.role-tag {
    background: var(--primary-4-light);
    color: var(--primary-4-dark);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Info Cards */
.info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 15px -3px rgba(0, 0, 0, 0.1);
}

.info-card h4 {
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--gray-600);
    margin-bottom: 0;
}

/* Blog Cards */
.blog-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card .card-body {
    padding: 2rem;
}

.blog-card h4 {
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.blog-card p {
    color: var(--gray-600);
    margin-bottom: 1.62rem;
}

.read-more {
    color: var(--primary-1);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--primary-1-dark);
}

/* FAQ Accordion */
.accordion-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    background: var(--white);
    border: none;
    padding: 1.5rem;
    font-weight: 500;
    color: var(--gray-800);
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
}

.accordion-button:hover {
    background: var(--gray-50);
}

.accordion-button:not(.collapsed) {
    background: var(--primary-1-light);
    color: var(--primary-1-dark);
}

.accordion-body {
    padding: 1.5rem;
    background: var(--gray-50);
}

/* Gallery */
.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.05);
    box-shadow: 0 14px 15px -3px rgba(0, 0, 0, 0.2);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.form-control {
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-1);
    box-shadow: 0 0 0 0.2rem rgba(85, 85, 228, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-1-dark), var(--primary-2-dark));
    transform: translateY(-2px);
    box-shadow: 0 15px 15px -3px rgba(0, 0, 0, 0.2);
}

/* Contact Info */
.contact-info {
    padding: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.73rem;
}

.contact-item i {
    font-size: 1.58rem;
    color: var(--primary-1);
    margin-right: 1rem;
    width: 30px;
}

.contact-item p {
    margin-bottom: 0;
    color: var(--gray-700);
    font-weight: 500;
}

/* Breadcrumb */
.breadcrumb-section {
    padding: 2rem 0;
    background: var(--gray-50);
    margin-top: 80px;
}

.breadcrumb-img {
    max-width: 200px;
    height: auto;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 5rem;
}

.footer h4, .footer h5 {
    color: var(--white);
    margin-bottom: 1.64rem;
}

.footer p {
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-1-light);
}

.footer hr {
    border-color: var(--gray-700);
    margin: 2rem 0 1rem;
}

.footer small {
    color: var(--gray-400);
    font-size: 1.00rem;
}

/* Background Utilities */
.bg-light {
    background: linear-gradient(135deg, var(--gray-50), var(--white));
}

/* Additional Page Styles */
.strategy-card,
.composition-card,
.talent-card,
.tech-card,
.management-card,
.industry-card,
.global-card,
.innovation-card,
.partnership-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border-left: 4px solid var(--primary-1);
}

.strategy-card:hover,
.composition-card:hover,
.talent-card:hover,
.tech-card:hover,
.management-card:hover,
.industry-card:hover,
.global-card:hover,
.innovation-card:hover,
.partnership-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 13px 15px -3px rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-2);
}

.composition-card {
    border-left-color: var(--primary-2);
}

.talent-card {
    border-left-color: var(--primary-3);
}

.tech-card {
    border-left-color: var(--primary-4);
}

.management-card {
    border-left-color: var(--primary-5);
}

.industry-card {
    border-left-color: var(--primary-1);
}

.global-card {
    border-left-color: var(--primary-2);
}

.innovation-card {
    border-left-color: var(--primary-3);
}

.partnership-card {
    border-left-color: var(--primary-4);
}

/* Space for custom content */
#space {
    min-height: 60vh;
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--gray-50), var(--white));
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.preloader-spinner {
    text-align: center;
}

/* Scroll to Top Button */
#scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.27rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0.8;
}

#scroll-to-top:hover {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Notification System */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    min-width: 300px;
    max-width: 400px;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid;
}

.notification-success {
    background: var(--white);
    border-left-color: var(--primary-5);
    color: var(--primary-5-dark);
}

.notification-error {
    background: var(--white);
    border-left-color: #f34e2f;
    color: #d53515;
}

.notification-info {
    background: var(--white);
    border-left-color: var(--primary-1);
    color: var(--primary-1-dark);
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.57rem;
    cursor: pointer;
    margin-left: 1rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.notification-close:hover {
    opacity: 1;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Navbar Improvements */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-1), 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%236366F1' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
    width: 1.5rem;
    height: 1.5rem;
}

.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Form Validation Improvements */
.form-control.is-invalid {
    border-color: #c83523;
    box-shadow: 0 0 0 0.2rem rgba(227, 30, 26, 0.25);
}

.invalid-feedback {
    color: #e73643;
    font-size: 0.95rem;
    margin-top: 0.48rem;
}

.form-control.is-valid {
    border-color: var(--primary-5);
    box-shadow: 0 0 0 0.2rem rgba(32, 193, 144, 0.25);
}

/* Loading States */
.btn.loading {
    position: relative;
    pointer-events: none;
}

.btn.loading .btn-text {
    opacity: 0;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Progress Bar Styles */
.nanobar {
    width: 100%;
    height: 3px;
    z-index: 9999;
    top: 0;
    position: fixed;
}

.nanobar .bar {
    background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
    width: 0;
    height: 100%;
    transition: height 0.3s;
}

/* Accessibility Improvements */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus Indicators */
.btn:focus,
.form-control:focus,
.form-check-input:focus {
    outline: 2px solid var(--primary-1);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-1);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 4px;
}

.skip-link:focus {
    top: 0;
}

/* High contrast mode improvements */
@media (prefers-contrast: high) {
    .feature-card,
    .service-card,
    .pricing-card,
    .team-member,
    .review-card,
    .case-card,
    .career-card,
    .info-card,
    .blog-card {
        border: 2px solid var(--gray-900);
    }
}

/* Image Loading States */
img {
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0.5;
    filter: blur(2px);
    transition: all 0.3s ease;
}

img.loaded {
    opacity: 1;
    filter: none;
}

.img-placeholder {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Lazy loading improvements */
.lozad {
    transition: opacity 0.3s ease;
}

/* Performance optimizations */
img, video {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* WebP support fallback */
.no-webp .hero-section::before {
    background-image: url('../images/hero-bg.webp');
}

/* Print optimizations */
@media print {
    #preloader,
    #scroll-to-top,
    .notification {
        display: none;
    }
    
    .hero-section {
        break-inside: avoid;
    }
    
    .section-padding {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    /* Hide interactive elements in print */
    .btn,
    .contact-form,
    .navbar {
        display: none;
    }
    
    /* Adjust colors for print */
    .hero-section,
    .feature-card,
    .service-card {
        background: white !important;
        color: black !important;
    }
} 


/* Team Social Links - Rounded Style */
.team-social-links {
    margin-top: 20px;
    padding: 15px 0;
}

.social-icons-grid {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: white;
}

.facebook-link {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
}

.facebook-link:hover {
    background: linear-gradient(135deg, #0d6efd, #1877f2);
}

.linkedin-link {
    background: linear-gradient(135deg, #0a66c2, #2196f3);
}

.linkedin-link:hover {
    background: linear-gradient(135deg, #084a8a, #0a66c2);
}

.x-link {
    background: linear-gradient(135deg, #000000, #333333);
    position: relative;
}

.x-link::after {
    content: '𝕏';
    font-weight: bold;
    font-size: 20px;
}

.x-link:hover {
    background: linear-gradient(135deg, #1a1a1a, #000000);
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 10px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}
