/* ============================================
   EcoOffice - Main Styles
   ============================================ */

/* Color Palette */
:root {
    --primary-color: #39853a;
    --primary-light: #3bac4d;
    --primary-dark: #175f1d;
    --secondary-color: #80bf84;
    --secondary-light: #8ed090;
    --secondary-dark: #6bb772;
    --accent-color: #e7cf00;
    --accent-light: #e7d959;
    --accent-dark: #fe950d;
    --neutral-color: #847064;
    --neutral-light: #887873;
    --neutral-dark: #4d352f;
    --earth-color: #4d3731;
    --earth-light: #5c4540;
    --earth-dark: #020000;
    --success-color: #62c662;
    --info-color: #1067e4;
    --warning-color: #ea9a00;
    --danger-color: #ff4141;
    --light-color: #F5F5F5;
    --dark-color: #1c2428;
    --white: #FFFFFF;
    --black: #000000;
    --gray-100: #F8F9FA;
    --gray-200: #d3d5d6;
    --gray-300: #d5e2f0;
    --gray-400: #a7b4c3;
    --gray-500: #aeb4c1;
    --gray-600: #7e8389;
    --gray-700: #52565a;
    --gray-800: #3b3e41;
    --gray-900: #2c3033;
}

/* Typography */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.57rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.85rem;
}

h4 {
    font-size: 1.63rem;
}

h5 {
    font-size: 1.35rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Navbar Styles */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.64rem;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* Dropdown menu styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 18px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.dropdown-item {
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--white);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../CYB_images/hero-bg.webp') center/cover;
    opacity: 0.3;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
    padding-top: 200px;
}

.hero-section p {
    font-size: 1.14rem;
    margin-bottom: 2rem;
    color: var(--white);
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.58rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.section-title p {
    font-size: 1.21rem;
    color: var(--gray-600);
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px 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);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.40rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.91rem;
}

.card-text {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

/* Process Section Styles */
.process-circle {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.54rem;
    font-weight: bold;
}

/* Team Section Styles */
.team-member-card {
    text-align: center;
}

.team-member-card img {
    border-radius: 50%;
    width: 200px;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1rem;
}

/* Reviews Section Styles */
.review-card {
    background: var(--white);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
}

.review-author {
    font-style: italic;
    color: var(--gray-600);
}

/* FAQ Section Styles */
.faq-card {
    margin-bottom: 1rem;
}

.faq-question {
    color: var(--primary-dark);
    margin-bottom: 0.70rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-answer {
    color: var(--gray-600);
    margin-bottom: 0;
}

/* Gallery Section Styles */
.gallery-item {
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    border-radius: 8px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
}

/* Timeline Section Styles */
.timeline-card {
    position: relative;
    padding-left: 2rem;
}

.timeline-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Career Section Styles */
.career-item {
    background: var(--gray-100);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.career-title {
    color: var(--primary-dark);
    margin-bottom: 0.67rem;
}

.career-role {
    color: var(--gray-600);
    font-size: 0.99rem;
}

/* Blog Section Styles */
.blog-card {
    height: 100%;
}

.blog-excerpt {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

/* Core Info Section Styles */
.info-card {
    background: var(--gray-100);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.info-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-success {
    background: linear-gradient(45deg, var(--success-color), var(--secondary-color));
    color: var(--white);
}

.btn-success:hover {
    background: linear-gradient(45deg, var(--primary-dark), var(--success-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 2px solid var(--gray-300);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(66, 146, 67, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Contact Section */
.contact-info {
    background: var(--gray-100);
    padding: 2rem;
    border-radius: 10px;
    height: 100%;
}

.contact-info h5 {
    color: var(--primary-dark);
    margin-bottom: 1.65rem;
}

.contact-info p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

footer h5 {
    color: var(--white);
    margin-bottom: 1rem;
}

footer p {
    color: var(--gray-400);
    margin-bottom: 0.72rem;
}

footer a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color);
}

footer hr {
    border-color: var(--gray-700);
    margin: 2rem 0 1rem;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item {
    color: var(--gray-600);
}

.breadcrumb-item.active {
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Sal.js animation classes */
[data-sal] {
    transition-duration: 0.8s;
}

[data-sal="fade-up"] {
    animation: fadeInUp 0.8s ease-out;
}

[data-sal="fade-left"] {
    animation: fadeInLeft 0.8s ease-out;
}

[data-sal="fade-right"] {
    animation: fadeInRight 0.8s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states */
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip links */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 6px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --primary-light: #232323;
        --primary-dark: #000000;
        --secondary-color: #5d5d5d;
        --text-color: #000000;
        --background-color: #ffffff;
    }
    
    .card {
        border: 2px solid var(--primary-color);
    }
    
    .btn {
        border: 2px solid var(--primary-color);
    }
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility classes */
.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.bg-primary {
    background-color: var(--primary-color);
}

.bg-secondary {
    background-color: var(--secondary-color);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
}

/* Space page styles */
#space {
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#space h1 {
    font-size: 6rem;
    color: var(--gray-400);
    font-weight: 100;
    text-align: center;
}

#space p {
    font-size: 1.64rem;
    color: var(--gray-500);
    text-align: center;
}

/* Print styles */
@media print {
    .navbar,
    .breadcrumb,
    footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card {
        break-inside: avoid;
    }
} 


/* Team Social Links - Minimal Style */
.team-social-links {
    margin-top: 16px;
    padding: 10px 0;
}

.social-icons-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    background: white;
}

.social-link:hover {
    transform: translateY(-1px);
    color: white;
}

.facebook-link:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

.linkedin-link:hover {
    background: #0a66c2;
    border-color: #0a66c2;
    color: white;
}

.x-link {
    position: relative;
}

.x-link::after {
    content: '𝕏';
    font-weight: bold;
    font-size: 18px;
    color: inherit;
}

.x-link:hover {
    background: #000000;
    border-color: #000000;
    color: white;
}

.x-link:hover::after {
    color: white;
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 15px;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}
