/* ===================================
   Recipe Customization Engine - Main CSS
   ===================================*/

/* Root Variables - Color Palette */
:root {
    /* Primary Colors */
    --primary-color: #4952e6;
    --primary-light: #a3b9ff;
    --primary-dark: #604bc7;
    
    --secondary-color: #1bb595;
    --secondary-light: #72fbd9;
    --secondary-dark: #009552;
    
    --accent-color: #edac0a;
    --accent-light: #f6be4e;
    --accent-dark: #d96d0c;
    
    --info-color: #308ded;
    --info-light: #7db5f5;
    --info-dark: #2644a5;
    
    --success-color: #ef4763;
    --success-light: #f59e96;
    --success-dark: #c82f27;
    
    /* Neutral Colors */
    --white: #ffffff;
    --light-gray: #f8fafc;
    --gray: #7f848f;
    --dark-gray: #3c414e;
    --black: #06080e;
    
    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    
    /* Box Shadow */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

/* Respect prefers-reduced-motion */
@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.2;
    margin-bottom: var(--spacing-md);
    color: var(--black);
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
h5 { font-size: var(--font-size-base); }
h6 { font-size: var(--font-size-sm); }

p {
    margin-bottom: var(--spacing-md);
    color: var(--gray);
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    box-shadow: var(--shadow-md);
    padding: var(--spacing-sm) 0;
}

.navbar-brand {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.navbar-brand:hover {
    color: var(--primary-light);
}

.navbar-nav .nav-link {
    color: var(--white);
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--primary-light);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Breadcrumb */
.breadcrumb-section {
    padding: var(--spacing-lg) 0;
    background-color: var(--light-gray);
}

.breadcrumb-img {
    height: 24px;
    width: auto;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff10" points="0,0 1000,300 1000,1000 0,700"/></svg>');
    background-size: cover;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: var(--font-size-4xl);
    color: var(--white);
    margin-bottom: var(--spacing-lg);
    padding-top: 225px;
}

.hero-section p {
    color: var(--primary-light);
    font-size: var(--font-size-lg);
}

/* Cards */
.feature-card,
.feature-item,
.service-card,
.review-card,
.case-study-card,
.team-card,
.blog-card,
.price-card,
.tech-card,
.algorithm-card,
.data-card,
.model-card,
.innovation-card,
.process-card,
.ingredient-card,
.technique-card,
.cuisine-card,
.info-card,
.career-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover,
.feature-item:hover,
.service-card:hover,
.review-card:hover,
.case-study-card:hover,
.team-card:hover,
.blog-card:hover,
.price-card:hover,
.tech-card:hover,
.algorithm-card:hover,
.data-card:hover,
.model-card:hover,
.innovation-card:hover,
.process-card:hover,
.ingredient-card:hover,
.technique-card:hover,
.cuisine-card:hover,
.info-card:hover,
.career-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Service Cards */
.service-card .card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
}

.service-card .card-body {
    padding: var(--spacing-lg);
}

.service-card .price {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-top: var(--spacing-lg);
}

.service-card ul li {
    margin-bottom: var(--spacing-sm);
    color: var(--gray);
}

.service-card ul li i {
    color: var(--secondary-color);
    margin-right: var(--spacing-sm);
}

/* Price Cards */
.price-card {
    text-align: center;
    border: 2px solid var(--light-gray);
    position: relative;
}

.price-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.price-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.price-tag {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--primary-color);
    margin: var(--spacing-lg) 0;
}

/* Team Cards */
.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--spacing-lg);
    border: 4px solid var(--primary-light);
}

/* Blog Cards */
.blog-card .card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
}

.blog-card .card-body {
    padding: var(--spacing-lg);
}

/* Case Study Cards */
.case-study-card .card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
}

.case-study-card .card-body {
    padding: var(--spacing-lg);
}

/* Review Cards */
.review-card .stars {
    color: var(--accent-color);
}

.review-card .stars i {
    font-size: var(--font-size-sm);
}

/* Process Steps */
.process-step {
    position: relative;
    padding-top: var(--spacing-2xl);
}

.step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-size-lg);
}

/* Timeline */
.timeline-container {
    position: relative;
    padding: var(--spacing-lg) 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-lg);
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    width: 45%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 55%;
    text-align: left;
}

.timeline-date {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

/* Gallery */
.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: var(--spacing-2xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-form .form-control {
    border: 2px solid var(--light-gray);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-base);
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(113, 126, 255, 0.25);
}

/* Buttons */
.btn {
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--border-radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: var(--font-size-base);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--info-dark));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* FAQ */
.accordion-item {
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-md);
}

.accordion-button {
    background: var(--white);
    border: none;
    padding: var(--spacing-lg);
    font-weight: 600;
    color: var(--dark-gray);
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: var(--white);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(97, 91, 255, 0.25);
}

.accordion-body {
    padding: var(--spacing-lg);
    background: var(--light-gray);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--black), var(--dark-gray));
    color: var(--white);
}

footer h5 {
    color: var(--primary-light);
    margin-bottom: var(--spacing-lg);
}

footer ul li {
    margin-bottom: var(--spacing-sm);
}

footer a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-light);
}

/* Utility Classes */
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-accent { color: var(--accent-color); }
.text-info { color: var(--info-color); }
.text-success { color: var(--success-color); }

.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-accent { background-color: var(--accent-color); }
.bg-info { background-color: var(--info-color); }
.bg-success { background-color: var(--success-color); }

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: var(--font-size-3xl);
    padding-top: 225px;
}
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
    }
    
    .timeline-container::before {
        left: 20px;
    }
    
    .price-card.featured {
        transform: none;
    }
}

/* Print styles */
@media print {
    .navbar,
    .breadcrumb-section,
    footer {
        display: none;
    }
    
    .hero-section {
        background: var(--white);
        color: var(--black);
    }
    
    * {
        box-shadow: none !important;
    }
} 


/* Team Social Links - Rounded Style */
.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: 45px;
    height: 45px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: white;
}

.facebook-link {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
}

.facebook-link:hover {
    background: linear-gradient(135deg, #0d6efd, #1877f2);
}

.linkedin-link {
    background: linear-gradient(135deg, #0a66c2, #2196f3);
}

.linkedin-link:hover {
    background: linear-gradient(135deg, #084a8a, #0a66c2);
}

.x-link {
    background: linear-gradient(135deg, #000000, #333333);
    position: relative;
}

.x-link::after {
    content: '𝕏';
    font-weight: bold;
    font-size: 20px;
}

.x-link:hover {
    background: linear-gradient(135deg, #1a1a1a, #000000);
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 10px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}
