/* Color Palette Variables */
:root {
    --primary-green: #39621c;
    --secondary-sage: #79945e;
    --accent-earth: #cdae8a;
    --neutral-cream: #dcdacf;
    --contrast-charcoal: #363434;
    
    --primary-green-light: #618535;
    --primary-green-dark: #23440c;
    --secondary-sage-light: #bdd79d;
    --secondary-sage-dark: #658647;
    --accent-earth-light: #ecd590;
    --accent-earth-dark: #c8a160;
    --neutral-cream-light: #F9F7F2;
    --neutral-cream-dark: #efeade;
    --contrast-charcoal-light: #464343;
    --contrast-charcoal-dark: #363232;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--contrast-charcoal);
    background-color: var(--neutral-cream);
    font-size: 16px;
}

@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.3;
    margin-bottom: 0.55rem;
    color: var(--primary-green);
}

h1 { font-size: 2.35rem; }
h2 { font-size: 1.89rem; }
h3 { font-size: 1.63rem; }
h4 { font-size: 1.35rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--contrast-charcoal);
}

/* Header */
.navbar {
    background: linear-gradient(135deg, var(--neutral-cream) 0%, var(--neutral-cream-dark) 100%);
    backdrop-filter: blur(13px);
    box-shadow: 0 7px 21px rgba(44, 93, 26, 0.10);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.56rem;
    font-weight: 700;
    color: var(--primary-green) !important;
    text-decoration: none;
}

.nav-link {
    color: var(--primary-green) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-sage) !important;
}

/* Hero Section */
.hero-section h1 {
    padding-top: 150px !important;
}

.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--secondary-sage-light) 0%, var(--accent-earth-light) 50%, var(--neutral-cream) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 50%;
    height: 200%;
    background: var(--primary-green);
    border-radius: 50%;
    opacity: 0.1;
    transform: rotate(15deg);
}

.hero-section img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(39, 76, 24, 0.20);
    max-height: 500px;
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* Section Padding */
.section-padding {
    padding: 5rem 0;
}

/* Cards */
.card {
    border: none;
    border-radius: 16px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 10px 16px rgba(45, 90, 25, 0.10);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 19px 30px rgba(47, 70, 22, 0.15);
}

.service-card, .brand-card, .cert-card, .career-card, .case-card, .blog-card, .review-card, .faq-card {
    height: 100%;
}

.service-card img, .brand-card img, .blog-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-radius: 17px 20px 0 0;
}

/* Price Cards */
.price-card {
    position: relative;
    transition: all 0.3s ease;
}

.price-card.featured {
    border: 2px solid var(--secondary-sage);
    transform: scale(1.05);
}

.price-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -17px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-sage);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.94rem;
    font-weight: 600;
}

/* Team Section */
.team-member img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid var(--accent-earth-light);
}

/* Process Steps */
.process-step {
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-sage));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.58rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

/* Impact Cards */
.impact-card {
    padding: 2rem;
    background: white;
    border-radius: 17px;
    box-shadow: 0 10px 16px rgba(75, 104, 37, 0.10);
    transition: all 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-5px);
}

.impact-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-green);
    display: block;
    margin-bottom: 0.62rem;
}

/* Timeline */
.timeline-item {
    position: relative;
    padding: 1rem;
}

.timeline-year {
    background: var(--accent-earth);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Feature Boxes */
.feature-box, .material-card, .info-card, .action-card {
    padding: 2rem;
    background: white;
    border-radius: 19px;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 5px 15px rgba(63, 93, 35, 0.10);
}

.feature-box:hover, .material-card:hover, .info-card:hover, .action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(30, 55, 19, 0.15);
}

/* Forms */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(41, 62, 15, 0.10);
}

.form-control {
    border: 2px solid var(--neutral-cream-dark);
    border-radius: 10px;
    padding: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-sage);
    box-shadow: 0 0 0 0.2rem rgba(128, 160, 108, 0.25);
}

/* Buttons */
.btn {
    padding: 0.875rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.93rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-sage));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-green-dark), var(--secondary-sage-dark));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 59, 21, 0.30);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-2px);
}

/* Gallery */
#gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

#gallery img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Breadcrumb */
.breadcrumb-section {
    padding: 2rem 0 1rem;
    margin-top: 80px;
}

.breadcrumb-icon {
    height: 30px;
    width: auto;
}

/* Space Section */
.space-section {
    min-height: 70vh;
    margin-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--neutral-cream), var(--neutral-cream-dark));
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-green-light), var(--contrast-charcoal-light));
    color: var(--neutral-cream);
}

.footer a {
    color: var(--neutral-cream-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent-earth-light);
}

.footer h5 {
    color: var(--accent-earth-light);
    margin-bottom: 1.62rem;
}

/* Background Variations */
.bg-light {
    background: linear-gradient(135deg, var(--neutral-cream-light) 0%, var(--neutral-cream) 100%) !important;
}

/* Utilities */
.text-primary {
    color: var(--primary-green) !important;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Additional Page 2 Components */
.innovation-card, .circular-card {
    height: 100%;
    transition: all 0.3s ease;
}

.innovation-card:hover, .circular-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(44, 81, 25, 0.15);
}

.impact-initiative {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 5px 15px rgba(44, 96, 19, 0.10);
}

.impact-initiative:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(51, 101, 34, 0.15);
}

.research-card {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 5px 15px rgba(54, 80, 26, 0.10);
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(41, 67, 17, 0.15);
}

.research-stage {
    font-size: 0.93rem;
    font-weight: 600;
}

.future-vision {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 5px 15px rgba(48, 74, 28, 0.10);
}

.future-vision:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(54, 90, 28, 0.15);
}

/* Form Validation Styles */
.form-control.is-invalid {
    border-color: #ca312f;
    background-image: none;
}

.form-check-input.is-invalid {
    border-color: #ce4446;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-sage);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green);
} 


/* Team Social Links - Enhanced Visibility */
.team-social-links {
    margin-top: 20px;
    padding: 15px 0;
}

.social-icons-grid {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    color: white !important;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.social-link i {
    z-index: 2;
    position: relative;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    color: white !important;
    text-decoration: none;
}

/* Facebook Link Styling */
.facebook-link {
    background: linear-gradient(135deg, #1877f2 0%, #42a5f5 50%, #64b5f6 100%);
    border-color: rgba(24, 119, 242, 0.3);
}

.facebook-link:hover {
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 50%, #42a5f5 100%);
    border-color: rgba(24, 119, 242, 0.6);
}

/* LinkedIn Link Styling */
.linkedin-link {
    background: linear-gradient(135deg, #0a66c2 0%, #1976d2 50%, #42a5f5 100%);
    border-color: rgba(10, 102, 194, 0.3);
}

.linkedin-link:hover {
    background: linear-gradient(135deg, #004182 0%, #1565c0 50%, #1976d2 100%);
    border-color: rgba(10, 102, 194, 0.6);
}

/* X (Twitter) Link Styling */
.x-link {
    background: linear-gradient(135deg, #000000 0%, #424242 50%, #666666 100%);
    border-color: rgba(0, 0, 0, 0.3);
    position: relative;
}

.x-link:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 50%, #555555 100%);
    border-color: rgba(0, 0, 0, 0.6);
}

/* Fallback symbols if Font Awesome fails to load */
.facebook-link::before {
    content: 'f';
    position: absolute;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 24px;
    color: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.linkedin-link::before {
    content: 'in';
    position: absolute;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 16px;
    color: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.x-link::before {
    content: '𝕏';
    position: absolute;
    font-family: Arial, sans-serif;
    font-weight: 900;
    font-size: 20px;
    color: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Hide fallback when Font Awesome is loaded */
.social-link i {
    position: relative;
    z-index: 3;
}

/* Show Font Awesome icons over fallback */
.fab:before {
    z-index: 3 !important;
}

/* Ensure Font Awesome icons are always visible */
.social-link .fab {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: inherit;
    line-height: 1;
}

/* Additional fallback for icon visibility */
.social-link:empty::after {
    content: '?';
    color: white;
    font-weight: bold;
}

/* Debug: Show red border if icons don't load */
.social-link:not(:has(.fab))::after {
    content: '!' attr(title);
    font-size: 10px;
    background: red;
    padding: 2px;
    border-radius: 3px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .social-icons-grid {
        gap: 12px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .x-link::after {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .social-icons-grid {
        gap: 10px;
    }
    
    .social-link {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    
    .x-link::after {
        font-size: 14px;
    }
}
