/* Main CSS for HabitQuest - Gamified Habit Building App */

/* CSS Variables - Color Palette */
:root {
    --primary-color: #777ff6;
    --primary-light: #bdc3ff;
    --primary-dark: #3a34c2;
    --secondary-color: #07c892;
    --secondary-light: #6ad09a;
    --secondary-dark: #009f64;
    --accent-color: #e7960b;
    --accent-light: #f9c54e;
    --accent-dark: #e98115;
    --neutral-color: #73777f;
    --neutral-light: #d5d6d7;
    --neutral-dark: #3b4e60;
    --success-color: #18b884;
    --success-light: #c2ffe4;
    --success-dark: #0d8c7a;
    --background-gradient: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    --card-gradient: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
    --text-primary: #2e3d4b;
    --text-secondary: #636e7b;
    --text-light: #f9fafb;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #ffffff;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 { font-size: 2.60rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.87rem; }
h4 { font-size: 1.54rem; }
h5 { font-size: 1.34rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.lead {
    font-size: 1.22rem;
    font-weight: 400;
    color: var(--text-secondary);
}

/* Header Styles */
.navbar-brand {
    font-size: 1.53rem;
    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(--text-primary);
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: var(--background-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../BAS_images/hero-bg.webp') center/cover;
    opacity: 0.1;
    z-index: -1;
}

.hero-section .display-4 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.57rem;
}

.hero-section .lead {
    font-size: 1.38rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 17px;
    box-shadow: 0 5px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--card-gradient);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 13px 20px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    border-radius: 12px 12px 0 0;
    height: 200px;
    object-fit: cover;
}

.card-title {
    font-size: 1.22rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.59rem;
}

.card-text {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Service Cards */
.service-card {
    height: 100%;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(94, 96, 216, 0.20);
}

.service-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

.service-card .h4 {
    color: var(--primary-color);
    font-weight: 700;
}

/* Button Styles */
.btn {
    font-weight: 500;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(98, 107, 219, 0.30);
}

.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;
}

/* Process Steps */
.process-step {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.60rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

/* Timeline Items */
.timeline-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
    background: var(--card-gradient);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-3px);
}

.timeline-item h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.59rem;
}

/* Form Styles */
.form-control {
    border-radius: 8px;
    border: 2px solid var(--neutral-light);
    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-color);
    box-shadow: 0 0 0 0.2rem rgba(122, 104, 225, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.71rem;
}

/* Contact Info */
.contact-info {
    background: var(--card-gradient);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 6px rgba(0, 0, 0, 0.1);
}

.contact-info h5 {
    color: var(--primary-color);
    margin-bottom: 1.57rem;
}

.contact-info p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* FAQ Accordion */
.accordion-item {
    border: 1px solid var(--neutral-light);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.accordion-button {
    background: var(--card-gradient);
    border: none;
    font-weight: 500;
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 8px;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(93, 113, 238, 0.25);
}

.accordion-body {
    padding: 1.5rem;
    background: white;
    border-radius: 0 0 8px 8px;
}

/* Gallery */
.gallery img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--neutral-dark), var(--text-primary));
    color: var(--text-light);
}

footer h5 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.64rem;
}

footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--text-light);
}

footer i {
    margin-right: 0.5rem;
}

/* Breadcrumb */
.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item img {
    border-radius: 4px;
}

/* Space Page */
#space {
    background: var(--background-gradient);
    padding: 4rem 0;
}

/* Utilities */
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--success-color); }
.text-warning { color: var(--accent-color); }
.text-info { color: var(--secondary-color); }

.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-success { background-color: var(--success-color); }
.bg-warning { background-color: var(--accent-color); }
.bg-info { background-color: var(--secondary-color); }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* High contrast for accessibility */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--neutral-dark);
    }
    
    .btn-primary {
        background: var(--primary-dark);
    }
    
    .btn-outline-primary {
        border-width: 3px;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .breadcrumb,
    footer {
        display: none;
    }
    
    .container {
        max-width: none;
    }
    
    .card {
        break-inside: avoid;
    }
} 

.hero-section h1 {
    padding-top: 275px;
}


/* 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;
    }
}
