/* EcoTech Recycling - Main CSS */

/* Color Palette Variables */
:root {
    --primary-color: #199927;
    --secondary-color: #5f666a;
    --accent-color: #248ba9;
    --success-color: #22ca8f;
    --warning-color: #f9a914;
    
    /* Light shades */
    --primary-light: #f7fff8;
    --secondary-light: #f8f9fa;
    --accent-light: #effbff;
    --success-light: #b8e6ee;
    --warning-light: #efe9d3;
    
    /* Dark shades */
    --primary-dark: #0f4220;
    --secondary-dark: #32363e;
    --accent-dark: #176080;
    --success-dark: #0e664f;
    --warning-dark: #785700;
    
    /* Typography */
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.125rem;
    --line-height-base: 1.5;
}

/* Media Query for Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Conservative Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: #2c2b2b;
}

/* Conservative heading sizes */
.navbar-brand {
    font-size: 1.28rem;
    font-weight: 600;
    color: var(--primary-color);
}

h1 {
    font-size: 2.53rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.89rem;
}

h3 {
    font-size: 1.56rem;
    font-weight: 500;
    margin-bottom: 0.71rem;
}

h4 {
    font-size: 1.28rem;
    font-weight: 500;
    margin-bottom: 0.64rem;
}

h5 {
    font-size: 1.22rem;
    font-weight: 500;
    margin-bottom: 0.63rem;
}

p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    margin-bottom: 1rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(15deg);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Custom Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 7px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Process Steps */
.process-step {
    padding: 2rem 1rem;
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.51rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 2;
}

.step-number::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 100px;
    height: 3px;
    background: var(--primary-light);
    z-index: 1;
}

.process-step:last-child .step-number::after {
    display: none;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--primary-light);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
    padding: 2rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-left: 2rem;
}

.timeline-item:nth-child(even) {
    margin-left: 0;
    margin-right: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 15px;
    height: 15px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd)::before {
    right: -8px;
}

.timeline-item:nth-child(even)::before {
    left: -8px;
}

/* Contact Info */
.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    font-size: var(--font-size-base);
}

.contact-item i {
    width: 20px;
    text-align: center;
}

/* Form Enhancements */
.form-control {
    border-radius: 0.5rem;
    border: 1px solid #cfd7da;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 173, 63, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Gallery */
#gallery img {
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

#gallery img:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2f465d 0%, #333f56 100%);
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(248, 249, 250, 0.95);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(248, 249, 250, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color);
}

.bg-primary {
    background-color: var(--primary-color);
}

.border-primary {
    border-color: var(--primary-color);
}

/* Responsive Image */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Team Images */
#team img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#team img:hover {
    transform: scale(1.1);
}

/* Custom spacing */
.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Section dividers */
section {
    position: relative;
}

section.bg-light {
    background-color: #f8f9fa;
}

/* Animation adjustments for accessibility */
@media (prefers-reduced-motion: no-preference) {
    .card,
    .btn,
    .form-control,
    img {
        transition-duration: 0.3s;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to main content (accessibility) */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-main:focus {
    top: 6px;
}

/* Print styles */
@media print {
    .navbar,
    footer,
    .btn,
    #gallery {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
} 

.hero-section h1 {
    padding-top: 200px;
}


/* Team Social Links - Square Style */
.team-social-links {
    margin-top: 18px;
    padding: 12px 0;
}

.social-icons-grid {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 17px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    position: relative;
}

.social-link:hover {
    transform: translateY(-2px) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    color: white;
}

.facebook-link {
    background: #1877f2;
    border: 2px solid #1877f2;
}

.facebook-link:hover {
    background: #166fe5;
    border-color: #166fe5;
}

.linkedin-link {
    background: #0a66c2;
    border: 2px solid #0a66c2;
}

.linkedin-link:hover {
    background: #0959aa;
    border-color: #0959aa;
}

.x-link {
    background: #000000;
    border: 2px solid #000000;
    position: relative;
}

.x-link::after {
    content: '✕';
    font-weight: bold;
    font-size: 18px;
}

.x-link:hover {
    background: #333333;
    border-color: #333333;
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 8px;
    }
    
    .social-link {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
}
