/* TitleOptimizer AI - Main CSS */

/* Color Variables - Pastel High Contrast Colors */
:root {
    --primary-color: #4A90E2;
    --primary-light: #7BB3F0;
    --primary-dark: #2E5C8A;
    
    --secondary-color: #50C878;
    --secondary-light: #7DD896;
    --secondary-dark: #3A9B5C;
    
    --accent-color: #FFB84D;
    --accent-light: #FFC970;
    --accent-dark: #E5A343;
    
    --warning-color: #FF6B6B;
    --warning-light: #FF8E8E;
    --warning-dark: #E55A5A;
    
    --info-color: #9B59B6;
    --info-light: #B478D1;
    --info-dark: #7E4A9A;
    
    --light-bg: #F8F9FA;
    --dark-bg: #2C3E50;
    --text-muted: #6C757D;
    --border-color: #DEE2E6;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Conservative Typography */
.navbar-brand {
    font-size: 1.25rem;
    font-weight: 600;
}

h1, .h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2, .h2 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

h3, .h3 {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

h4, .h4 {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

h5, .h5 {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

h6, .h6 {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
}

/* Header Styles */
#header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

#header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.navbar-brand:hover {
    color: var(--primary-dark);
}

.nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, var(--light-bg) 0%, #ffffff 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23e9ecef" opacity="0.5"/><circle cx="75" cy="75" r="1.5" fill="%234A90E2" opacity="0.3"/><circle cx="50" cy="10" r="0.8" fill="%2350C878" opacity="0.4"/><circle cx="10" cy="60" r="1.2" fill="%23FFB84D" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    z-index: -1;
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.bg-light {
    background-color: var(--light-bg);
}

/* Card Styles */
.card {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Button Styles */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.btn-success {
    background-color: var(--secondary-color);
    color: white;
}

.btn-success:hover {
    background-color: var(--secondary-dark);
    color: white;
}

.btn-warning {
    background-color: var(--accent-color);
    color: #333;
}

.btn-warning:hover {
    background-color: var(--accent-dark);
    color: #333;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Form Styles */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
    outline: 0;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

/* Text Colors */
.text-primary {
    color: var(--primary-color);
}

.text-success {
    color: var(--secondary-color);
}

.text-warning {
    color: var(--accent-color);
}

.text-danger {
    color: var(--warning-color);
}

.text-info {
    color: var(--info-color);
}

.text-muted {
    color: var(--text-muted);
}

/* Background Colors */
.bg-primary {
    background-color: var(--primary-color);
}

.bg-success {
    background-color: var(--secondary-color);
}

.bg-warning {
    background-color: var(--accent-color);
}

.bg-danger {
    background-color: var(--warning-color);
}

.bg-info {
    background-color: var(--info-color);
}

/* Icon Styles */
.fas, .fab {
    transition: transform 0.3s ease, color 0.3s ease;
}

.card:hover .fas,
.card:hover .fab {
    transform: scale(1.1);
}

/* Team Section */
.team-member img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    transition: border-color 0.3s ease;
}

.team-member:hover img {
    border-color: var(--secondary-color);
}

/* Gallery Styles */
#gallery img {
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

#gallery img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Footer Styles */
#footer {
    background-color: var(--dark-bg);
    color: white;
}

#footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

#footer a:hover {
    color: var(--primary-light);
}

/* Breadcrumb Styles */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item img {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.breadcrumb-item:hover img {
    opacity: 1;
}

/* Animation Classes for Sal.js */
[data-sal] {
    transition-duration: 0.5s;
    transition-timing-function: ease-out;
}

/* Utility Classes */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.rounded {
    border-radius: 0.375rem;
}

.rounded-circle {
    border-radius: 50%;
}

/* Spacing Utilities */
.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

/* Display Utilities */
.d-flex {
    display: flex;
}

.d-inline-flex {
    display: inline-flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.text-center {
    text-align: center;
}

/* Flexbox Utilities */
.flex-shrink-0 {
    flex-shrink: 0;
}

.me-2 {
    margin-right: 0.5rem;
}

.me-3 {
    margin-right: 1rem;
}

/* Badge Styles */
.badge {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
}

/* List Styles */
.list-unstyled {
    list-style: none;
    padding-left: 0;
}

/* Performance Optimizations */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Accessibility Improvements */
.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;
}

/* Focus Styles */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
} 


/* 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);
}

.instagram-link {
    background: linear-gradient(45deg, #e4405f, #f77737, #fcaf45, #ffdc80);
}

.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;
    }
}
