/* Business Negotiation Skills Training - Main CSS */

/* Color Palette - Exactly 5 primary colors plus light/dark shades */
:root {
    /* Primary Colors */
    --primary-blue: #5966f2;
    --primary-purple: #805dba;
    --primary-green: #0daa8c;
    --primary-orange: #ffaefd;
    --primary-coral: #f88af5;
    
    /* Light Shades */
    --light-blue: #9494f4;
    --light-purple: #a489d0;
    --light-green: #2ef179;
    --light-orange: #f0ddc5;
    --light-coral: #ffb899;
    
    /* Dark Shades */
    --dark-blue: #455dc8;
    --dark-purple: #504369;
    --dark-green: #177dfe;
    --dark-orange: #f38d82;
    --dark-coral: #ff7261;
    
    /* Neutral Colors */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #8e9294;
    --dark-gray: #454d57;
    --black: #000000;
    
    /* Bootstrap Override */
    --bs-primary: var(--primary-blue);
    --bs-success: var(--primary-green);
    --bs-info: var(--light-blue);
    --bs-warning: var(--primary-orange);
    --bs-danger: var(--primary-coral);
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    font-size: 16px; /* Conservative font size */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.52rem; } /* Conservative size */
h2 { font-size: 2rem; }
h3 { font-size: 1.80rem; }
h4 { font-size: 1.62rem; }
h5 { font-size: 1.28rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    font-size: 1rem; /* Conservative paragraph size */
}

.lead {
    font-size: 1.17rem; /* Slightly larger for lead text */
    font-weight: 400;
}

/* Navbar Styles */
.navbar-brand {
    font-size: 1.64rem !important; /* Conservative logo size */
    font-weight: 700;
    color: var(--primary-blue) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-gray) !important;
    padding: 0.75rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-blue) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15) !important;
}

.card-img-top {
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Button Styles */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--dark-blue), var(--dark-purple));
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(122, 164, 253, 0.40);
}

.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);
    transform: translateY(-2px);
}

/* Section Spacing */
section {
    padding: 4rem 0;
}

.py-5 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

/* Background Alternation */
.bg-light {
    background: linear-gradient(135deg, var(--light-gray) 0%, #f0f2f5 100%) !important;
}

/* Icon Styles */
.fas, .fab, .far {
    transition: all 0.3s ease;
}

.text-primary { color: var(--primary-blue) !important; }
.text-success { color: var(--primary-green) !important; }
.text-info { color: var(--light-blue) !important; }
.text-warning { color: var(--primary-orange) !important; }
.text-danger { color: var(--primary-coral) !important; }

/* Footer Styles */
footer {
    background: linear-gradient(135deg, var(--dark-gray) 0%, #3c4e63 100%) !important;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-blue) !important;
}

/* Form Styles */
.form-control {
    border-radius: 8px;
    border: 2px solid #e2e9ef;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(111, 123, 214, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.71rem;
}

/* Accordion Styles */
.accordion-button {
    background: var(--light-gray);
    border: none;
    font-weight: 600;
    color: var(--dark-gray);
}

.accordion-button:not(.collapsed) {
    background: var(--primary-blue);
    color: var(--white);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(124, 142, 255, 0.25);
}

/* Timeline Styles */
.timeline-item {
    position: relative;
    padding: 2rem 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-blue);
    transform: translateX(-50%);
}

.timeline-item:last-child::before {
    display: none;
}

/* Breadcrumb Styles */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item img {
    border-radius: 50%;
    transition: transform 0.3s ease, filter 0.3s ease;
    border: 2px solid transparent;
}

.breadcrumb-item img:hover {
    transform: scale(1.1);
    filter: brightness(110%);
}

.breadcrumb-item.active img {
    border-color: var(--primary-blue);
    opacity: 0.8;
}

.breadcrumb-item:not(.active) img:hover {
    border-color: var(--primary-purple);
}

/* Gallery Styles */
.gallery img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
    filter: brightness(110%);
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.87rem; }
    .hero-section { min-height: 80vh !important; }
    .navbar-brand { font-size: 1.38rem !important; }
    section { padding: 3rem 0; }
}

/* Prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-section::before {
        animation: none;
    }
    
    .card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
}

/* Utility Classes */
.shadow-custom {
    box-shadow: 0 13px 30px rgba(0, 0, 0, 0.1);
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--primary-blue), var(--primary-purple)) 1;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* High Contrast Text */
.high-contrast {
    color: var(--dark-gray);
    background-color: var(--white);
}

/* Services Grid */
.services-grid .card {
    height: 100%;
    min-height: 400px;
}

/* Team Section */
.team-member img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 3px solid var(--primary-blue);
    transition: border-color 0.3s ease;
}

.team-member:hover img {
    border-color: var(--primary-purple);
}

/* Reviews Section */
.review-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-3px);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(98, 103, 248, 0.30);
    border-radius: 50%;
    border-top-color: var(--primary-blue);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
} 


/* 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;
    }
}
