/* ==========================================================================
   Main CSS - EcoMail Solutions
   ========================================================================== */

/* Color Palette - Pastel High-Contrast Colors */
:root {
    /* Primary Colors */
    --primary-green: #7FB069;
    --primary-blue: #5AA9E6;
    --primary-cream: #F4E8C1;
    --primary-coral: #FF8B94;
    --primary-sage: #A8DADC;
    
    /* Light Shades */
    --light-green: #A8E6CF;
    --light-blue: #88C0F1;
    --light-cream: #F9F2E3;
    --light-coral: #FFB3B3;
    --light-sage: #C8E6E8;
    
    /* Dark Shades */
    --dark-green: #5A8040;
    --dark-blue: #4A8FCC;
    --dark-cream: #E6D4A1;
    --dark-coral: #E5707A;
    --dark-sage: #8FB8BA;
    
    /* Neutral Colors */
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --background-light: #FAFAFA;
    --white: #FFFFFF;
    
    /* Typography */
    --font-size-base: 1rem;
    --font-size-small: 0.875rem;
    --font-size-large: 1.125rem;
    --font-size-h1: 2.5rem;
    --font-size-h2: 2rem;
    --font-size-h3: 1.5rem;
    --font-size-h4: 1.25rem;
    --font-size-h5: 1.125rem;
    --font-size-h6: 1rem;
    
    /* Spacing */
    --section-padding: 4rem 0;
    --card-padding: 1.5rem;
    --border-radius: 0.5rem;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Bootstrap Color Overrides */
.btn-primary {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-primary:hover {
    background-color: var(--dark-green);
    border-color: var(--dark-green);
}

.text-primary {
    color: var(--primary-green) !important;
}

.bg-primary {
    background-color: var(--primary-green) !important;
}

.border-primary {
    border-color: var(--primary-green) !important;
}

/* Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: var(--font-size-h1);
}

h2 {
    font-size: var(--font-size-h2);
}

h3 {
    font-size: var(--font-size-h3);
}

h4 {
    font-size: var(--font-size-h4);
}

h5 {
    font-size: var(--font-size-h5);
}

h6 {
    font-size: var(--font-size-h6);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.lead {
    font-size: var(--font-size-large);
    font-weight: 400;
    color: var(--text-dark);
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

.navbar-brand:hover {
    color: var(--dark-green);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark);
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-green);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--light-cream) 0%, var(--light-sage) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-sage) 0%, transparent 70%);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-section h1 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-top: 200px;
}

.hero-section .lead {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Section Styling */
section {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--light-cream) !important;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Feature Cards */
.feature-card {
    padding: var(--card-padding);
    text-align: center;
}

.feature-card i {
    margin-bottom: 1rem;
}

.feature-card h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
}

/* Service Cards */
.service-card {
    height: 100%;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-top: 1rem;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.service-card ul li {
    padding: 0.25rem 0;
    color: var(--text-light);
}

.service-card ul li::before {
    content: '✓';
    color: var(--primary-green);
    margin-right: 0.5rem;
}

/* Feature Items */
.feature-item {
    padding: 1rem 0;
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--light-green);
}

.feature-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Pricing Cards */
.pricing-card {
    position: relative;
    height: 100%;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card .badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.price-tag {
    margin: 2rem 0;
}

.price-tag .h2 {
    color: var(--primary-green);
    font-weight: 700;
}

.pricing-card ul {
    margin: 2rem 0;
}

.pricing-card ul li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

/* Team Section */
.team-member {
    padding: 1rem;
}

.team-member img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.team-member h5 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.team-member p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Review Cards */
.review-card {
    height: 100%;
    padding: var(--card-padding);
}

.review-card .stars {
    margin-bottom: 1rem;
}

.review-card .stars i {
    color: #FFD700;
    margin-right: 0.2rem;
}

.review-card p {
    font-style: italic;
    margin-bottom: 1rem;
}

.review-card h6 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0;
}

/* Case Study Cards */
.case-study-card {
    height: 100%;
    padding: var(--card-padding);
}

.case-study-card h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.case-study-card p {
    color: var(--text-light);
}

/* Process Steps */
.process-step {
    padding: 1rem;
}

.step-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.process-step h5 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.process-step p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-green);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
    padding-right: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
    padding-left: 2rem;
}

.timeline-year {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    min-width: 100px;
    text-align: center;
}

.timeline-content {
    flex: 1;
    max-width: 45%;
}

.timeline-content h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Career Cards */
.career-card {
    height: 100%;
    padding: var(--card-padding);
}

.career-card h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.career-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Info Cards */
.info-card {
    padding: var(--card-padding);
    text-align: center;
}

.info-card i {
    margin-bottom: 1rem;
}

.info-card h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Blog Cards */
.blog-card {
    height: 100%;
    padding: var(--card-padding);
}

.blog-card h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.blog-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* FAQ Cards */
.faq-card {
    padding: var(--card-padding);
    margin-bottom: 1rem;
}

.faq-card h5 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.faq-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Contact Form */
.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form .form-control {
    border: 2px solid var(--light-sage);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(127, 176, 105, 0.25);
}

.contact-form .btn {
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
}

/* Footer */
footer {
    background-color: var(--text-dark) !important;
    color: var(--white);
}

footer h5 {
    color: var(--white);
    margin-bottom: 1rem;
}

footer p {
    color: #BDC3C7;
    margin-bottom: 0.5rem;
}

footer a {
    color: #BDC3C7;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-green);
}

/* Utility Classes */
.text-center {
    text-align: center !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.rounded {
    border-radius: var(--border-radius) !important;
}

.shadow {
    box-shadow: var(--box-shadow) !important;
}

.shadow-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item img {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.breadcrumb-item:hover img {
    opacity: 1;
}

/* 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;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States */
*:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background-color: var(--primary-green);
    color: var(--white);
}

/* Additional Items for Pages */
.process-item,
.sustainability-item,
.quality-item,
.innovation-item,
.future-item,
.benefit-item,
.waste-item,
.lifecycle-item,
.carbon-item,
.conservation-item {
    padding: 1rem;
    text-align: center;
}

.process-item h4,
.sustainability-item h4,
.quality-item h4,
.innovation-item h4,
.future-item h4,
.benefit-item h4,
.waste-item h4,
.lifecycle-item h4,
.carbon-item h4,
.conservation-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.process-item p,
.sustainability-item p,
.quality-item p,
.innovation-item p,
.future-item p,
.benefit-item p,
.waste-item p,
.lifecycle-item p,
.carbon-item p,
.conservation-item p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
    box-shadow: var(--box-shadow);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--dark-green);
    transform: translateY(-2px);
}

.scroll-to-top:active {
    transform: translateY(0);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    color: var(--white);
    font-weight: 500;
    z-index: 1001;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    background-color: var(--primary-green);
}

.notification-error {
    background-color: var(--primary-coral);
}

/* Focus visible styles */
.focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Navbar scrolled state */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* Animation classes for intersection observer */
.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.fade-in.animate {
    opacity: 1;
}

.slide-up {
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.slide-up.animate {
    transform: translateY(0);
    opacity: 1;
}

.scale-in {
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.scale-in.animate {
    transform: scale(1);
    opacity: 1;
} 


/* Team Social Links - Elegant Style */
.team-social-links {
    margin-top: 24px;
    padding: 18px 0;
}

.social-icons-grid {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 17px;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    color: white;
}

.facebook-link {
    background: rgba(24, 119, 242, 0.9);
}

.facebook-link:hover {
    background: rgba(24, 119, 242, 1);
    box-shadow: 0 8px 30px rgba(24, 119, 242, 0.4);
}

.linkedin-link {
    background: rgba(10, 102, 194, 0.9);
}

.linkedin-link:hover {
    background: rgba(10, 102, 194, 1);
    box-shadow: 0 8px 30px rgba(10, 102, 194, 0.4);
}

.x-link {
    background: rgba(0, 0, 0, 0.9);
    position: relative;
}

.x-link::after {
    content: '𝕏';
    font-weight: bold;
    font-size: 19px;
    z-index: 2;
    position: relative;
}

.x-link:hover {
    background: rgba(0, 0, 0, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 12px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
}
