/* FlexYard Custom Styles */

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
}

/* Custom Color Variables */
:root {
    --flexyard-asphalt: #2D3142;
    --flexyard-steel: #4F5D75;
    --flexyard-orange: #FF6B35;
    --flexyard-yellow: #FFE66D;
    --flexyard-gray: #8B94A3;
    --flexyard-light: #F8F9FA;
}

/* Navigation Styles */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--flexyard-orange);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--flexyard-orange);
}

/* Section Management */
.section-content {
    min-height: 100vh;
    display: none;
}

.section-content.active {
    display: block;
}

/* Button Styles */
.btn-primary {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(255, 230, 109, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 230, 109, 0.4);
}

/* Card Hover Effects */
.service-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(45, 49, 66, 0.15);
}

/* Icon Animations */
.icon-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Flow Diagram Styles */
.flow-step {
    position: relative;
    transition: all 0.3s ease;
}

.flow-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50px;
    width: 40px;
    height: 2px;
    background-color: var(--flexyard-orange);
    transform: translateY(-50%);
}

.flow-step:last-child::after {
    display: none;
}

@media (max-width: 768px) {
    .flow-step::after {
        top: auto;
        bottom: -30px;
        right: 50%;
        left: 50%;
        width: 2px;
        height: 40px;
        transform: translateX(-50%);
    }
    
    .flow-step:last-child::after {
        display: none;
    }
}

/* Flywheel Diagram Styles */
.flywheel-center {
    position: relative;
    z-index: 10;
}

.flywheel-item {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.flywheel-item:hover {
    transform: scale(1.1);
    z-index: 15;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(45, 49, 66, 0.8);
    z-index: 1000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--flexyard-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* SWOT Grid Styles */
.swot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background-color: var(--flexyard-steel);
    border-radius: 12px;
    overflow: hidden;
}

.swot-item {
    padding: 2rem;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.swot-item:hover {
    background-color: var(--flexyard-light);
}

.swot-strengths { border-top-left-radius: 12px; }
.swot-weaknesses { border-top-right-radius: 12px; }
.swot-opportunities { border-bottom-left-radius: 12px; }
.swot-threats { border-bottom-right-radius: 12px; }

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu {
        transition: all 0.3s ease;
    }
    
    .swot-grid {
        grid-template-columns: 1fr;
    }
    
    .swot-item {
        border-radius: 0 !important;
    }
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hero-image {
    filter: brightness(0.8) contrast(1.1);
    transition: filter 0.3s ease;
}

.section-image {
    box-shadow: 0 4px 12px rgba(45, 49, 66, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 49, 66, 0.2);
}

/* Responsive Images */
@media (max-width: 768px) {
    .section-image {
        height: 200px !important;
    }
    
    .hero-image {
        height: 250px !important;
    }
}

/* Image Loading States */
img[src] {
    background-color: #f8f9fa;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='%23ddd'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10zm10 0c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10z'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* Scroll Behavior */
html {
    scroll-behavior: smooth;
}