/* ReThread - Upcycled Denim Fashion Brand - Main CSS */

/* ========================================
   CSS Variables (Color Palette)
========================================= */
:root {
    /* Primary Colors - Denim & Sustainable Theme */
    --primary-blue: #4A90A4;
    --primary-indigo: #6C7B95;
    --primary-slate: #2C3E50;
    --primary-sage: #87A96B;
    --primary-cream: #F4F1DE;
    
    /* Light Shades */
    --light-blue: #E8F4F8;
    --light-indigo: #F0F2F7;
    --light-slate: #ECF0F1;
    --light-sage: #F1F5ED;
    --light-cream: #FDFCF7;
    
    /* Dark Shades */
    --dark-blue: #2C5F6F;
    --dark-indigo: #4A5568;
    --dark-slate: #1A252F;
    --dark-sage: #5D7C47;
    --dark-cream: #E8E5D3;
    
    /* Bootstrap Override */
    --bs-primary: var(--primary-blue);
    --bs-secondary: var(--primary-sage);
    --bs-success: var(--primary-sage);
    --bs-light: var(--light-cream);
    --bs-dark: var(--primary-slate);
    
    /* Typography */
    --font-family-base: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.6;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --border-radius: 0.5rem;
    --box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Base Styles
========================================= */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--primary-slate);
    background-color: #ffffff;
    overflow-x: hidden;
}

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

/* ========================================
   Typography - Conservative Sizing
========================================= */
h1, .h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-slate);
}

h2, .h2 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-slate);
}

h3, .h3 {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--primary-indigo);
}

h4, .h4 {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.4;
}

h5, .h5 {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
}

p, .lead {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--primary-indigo);
}

/* ========================================
   Header & Navigation
========================================= */
.navbar {
    box-shadow: var(--box-shadow);
    background-color: var(--light-cream) !important;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem !important; /* Conservative logo size */
    font-weight: 700;
    color: var(--primary-blue) !important;
    text-decoration: none;
}

.navbar-brand:hover {
    color: var(--dark-blue) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--primary-slate) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-blue) !important;
}

/* ========================================
   Hero Section
========================================= */
.hero-section {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--light-cream) 100%);
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    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="%234A90A4" opacity="0.1"/></svg>');
    background-size: 50px 50px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-20px) rotate(360deg); }
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* ========================================
   Cards & Components
========================================= */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

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

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* ========================================
   Buttons
========================================= */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

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

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

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

/* ========================================
   Sections
========================================= */
section {
    padding: var(--section-padding);
}

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

/* ========================================
   Process Steps & Features
========================================= */
.process-step,
.feature-icon,
.process-number,
.impact-stat,
.process-circle {
    transition: all 0.3s ease;
}

.process-step:hover,
.feature-icon:hover,
.process-number:hover,
.impact-stat:hover,
.process-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(74, 144, 164, 0.2);
}

/* ========================================
   Team Section
========================================= */
.col-lg-2-4 {
    flex: 0 0 auto;
    width: 20%;
}

@media (max-width: 991.98px) {
    .col-lg-2-4 {
        width: 50%;
    }
}

@media (max-width: 575.98px) {
    .col-lg-2-4 {
        width: 100%;
    }
}

/* ========================================
   Timeline
========================================= */
.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-blue);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    padding: 1rem 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    background: var(--primary-blue);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-blue);
}

.timeline-date {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-blue);
}

/* ========================================
   Forms
========================================= */
.form-control {
    border: 2px solid var(--light-indigo);
    border-radius: var(--border-radius);
    padding: 0.75rem 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(74, 144, 164, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--primary-slate);
    margin-bottom: 0.5rem;
}

/* ========================================
   Breadcrumbs
========================================= */
.breadcrumb-section {
    border-bottom: 1px solid var(--light-indigo);
}

/* ========================================
   Footer
========================================= */
footer {
    background-color: var(--primary-slate) !important;
}

footer h5 {
    color: var(--primary-cream);
    margin-bottom: 1rem;
}

footer p,
footer li {
    color: var(--light-cream);
}

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

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

footer hr {
    border-color: var(--dark-slate);
}

/* ========================================
   Utilities
========================================= */
.text-primary {
    color: var(--primary-blue) !important;
}

.bg-primary {
    background-color: var(--primary-blue) !important;
}

.border-primary {
    border-color: var(--primary-blue) !important;
}

/* ========================================
   Space Page
========================================= */
#space {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--light-sage) 50%, var(--light-cream) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   Gallery
========================================= */
.gallery img {
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* ========================================
   Accessibility
========================================= */
.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 styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* ========================================
   Performance Optimizations
========================================= */
.card-img-top,
img {
    max-width: 100%;
    height: auto;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}


.hero-section h1 {
    padding-top: 275px;
}


/* Team Social Links - Gradient Style */
.team-social-links {
    margin-top: 20px;
    padding: 18px 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 20px;
}

.social-icons-grid {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 48px;
    height: 48px;
    border-radius: 24px;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.social-link::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: inherit;
    border-radius: inherit;
    z-index: -1;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    color: white;
}

.facebook-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.facebook-link:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.linkedin-link {
    background: linear-gradient(135deg, #2196f3 0%, #21cbf3 100%);
}

.linkedin-link:hover {
    background: linear-gradient(135deg, #21cbf3 0%, #2196f3 100%);
}

.instagram-link {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.instagram-link:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}

.x-link {
    background: linear-gradient(135deg, #232526 0%, #414345 100%);
    position: relative;
}

.x-link::after {
    content: '✦';
    font-weight: bold;
    font-size: 22px;
    z-index: 2;
    position: relative;
}

.x-link:hover {
    background: linear-gradient(135deg, #414345 0%, #232526 100%);
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 12px;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}
