/* Custom CSS for SOS Entropy Website */

/* Color Variables */
:root {
    --primary-orange: #FF6B35;
    --secondary-orange: #FF8C42;
    --accent-red: #DC2626;
    --dark-black: #1a1a1a;
    --light-black: #626627;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

.bg-primary-light {
    background-color: #f8f9fa;
}
.bg-secondary-light {
    background-color: #ffffff;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif; /* Keep Arial */
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Trebuchet MS', Arial, sans-serif; /* Change from Times New Roman to Trebuchet MS */
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.0) 0%, rgba(220, 38, 38, 0.0) 100%), 
                url('images/fon1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    position: relative;
    overflow: hidden;
    padding: 60px 0; /* Add padding instead of min-height */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Responsive hero text */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* CTA Buttons */
.btn-cta {
    background: linear-gradient(45deg, var(--secondary-orange), var(--primary-orange));
    border: none;
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-cta:hover {
    background: linear-gradient(45deg, var(--primary-orange), var(--accent-red));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: white;
}

.btn-cta:active {
    transform: translateY(-1px);
}

/* Custom submit button - remove all effects */
.btn-cta-submit {
    background: linear-gradient(45deg, #98a200, #98a200) !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    color: white !important;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
}

.btn-cta-submit:hover {
    background: linear-gradient(45deg, #7a8200, #5c6200) !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    color: white !important;
    transform: none !important; /* Remove any transform effects */
}

.btn-cta-submit:focus {
    background: linear-gradient(45deg, #98a200, #98a200) !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    color: white !important;
}

.btn-cta-submit:active {
    background: linear-gradient(45deg, #7a8200, #7a8200) !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    transform: none !important;
}

/* Custom white button for services section */
.btn-cta-white {
    background: #ffffff !important;
    border: 2px solid var(--primary-orange) !important;
    color: var(--primary-orange) !important;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.btn-cta-white:hover {
    background: #f8f9fa !important; /* Light grey background on hover */
    border-color: var(--primary-orange) !important;
    color: var(--primary-orange) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.btn-cta-white:focus {
    background: #ffffff !important;
    border-color: var(--primary-orange) !important;
    color: var(--primary-orange) !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 53, 0.25);
}

.btn-cta-white:active {
    background: #f8f9fa !important;
    color: var(--primary-orange) !important;
    transform: translateY(0);
}

/* Content Sections */
.content-section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .content-section {
        padding: 60px 0;
    }
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark-black);
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-orange), var(--accent-red));
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-text {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Decorative Separators */
.separator-section {
    padding: 40px 0;
    background: linear-gradient(90deg, transparent, var(--primary-orange), transparent);
}

.decorative-hr {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-orange), var(--accent-red), var(--primary-orange), transparent);
    margin: 0;
    opacity: 0.8;
}

/* Step Cards */
.step-card {
    background: white;
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    border: 2px solid transparent;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-orange);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--primary-orange), var(--accent-red));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.step-card i {
    color: var(--primary-orange);
    margin-bottom: 20px;
}

.step-card h4 {
    color: var(--dark-black);
    margin-bottom: 15px;
}

.step-card p {
    color: var(--text-light);
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    border-left: 5px solid var(--primary-orange);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.testimonial-content .fa-quote-left {
    color: var(--primary-orange);
    font-size: 2rem;
    margin-bottom: 15px;
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.testimonial-author {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Benefit Cards */
.benefit-card {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-orange);
}

.benefit-card i {
    color: var(--primary-orange);
    margin-bottom: 20px;
}

.benefit-card h5 {
    color: var(--dark-black);
    margin-bottom: 15px;
}

.benefit-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* FAQ Section */
.accordion-item {
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 10px !important;
    margin-bottom: 15px;
}

.accordion-button {
    background-color: var(--bg-light);
    border: none;
    font-weight: bold;
    color: var(--dark-black);
    border-radius: 10px !important;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(45deg, var(--primary-orange), var(--secondary-orange));
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 53, 0.25);
}

.accordion-body {
    background-color: white;
    color: var(--text-dark);
    border-radius: 0 0 10px 10px;
    font-family: 'Trebuchet MS', Arial, sans-serif; /* Change from Times New Roman to Trebuchet MS */
}

/* Contact Form */
.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form .form-label {
    color: white;
    font-weight: bold;
    margin-bottom: 8px;
}

.contact-form .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    background: white;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 53, 0.25);
}

.contact-form .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Footer */
.footer-section {
    background-color: #f8f9fa !important; /* Light gray background */
    padding: 40px 0 20px;
    color: #333333; /* Dark text color */
}

.footer-section h5 {
    color: #333333 !important; /* Dark headings instead of orange */
    margin-bottom: 20px;
    font-weight: bold;
}

.footer-section p {
    color: #333333 !important; /* Dark text instead of white */
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--primary-orange); /* Keep links orange for visibility */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-red); /* Darker orange on hover */
}

.footer-section hr {
    border-color: #dee2e6; /* Light gray border for the hr */
}

/* Ensure icons in footer are visible */
.footer-section i {
    color: var(--primary-orange); /* Orange icons for better visibility */
}

/* Background Variations */
.bg-light {
    background-color: var(--bg-light) !important;
}

.bg-light-2 {
    background-color: var(--bg-light-2) !important;
}

.bg-dark {
    background-color: var(--light-black) !important;
}

.bg-black {
    background-color: var(--dark-black) !important;
}

/* Icons */
.problem-icon i,
.solution-icon i {
    opacity: 0.8;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .step-card,
    .testimonial-card,
    .benefit-card {
        margin-bottom: 30px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .content-section {
        padding: 50px 0;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .btn-cta {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 25px 15px;
    }
}

/* Smooth transitions for all interactive elements */
* {
    transition: all 0.3s ease;
}

/* Accessibility improvements */
.btn-cta:focus,
.form-control:focus,
.accordion-button:focus {
    outline: 3px solid rgba(255, 107, 53, 0.5);
    outline-offset: 2px;
}

/* Loading animation for form submission */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading .btn-cta {
    background: #ccc;
    cursor: not-allowed;
}

/* Success/Error messages */
.alert {
    border-radius: 10px;
    border: none;
    padding: 20px;
    margin-bottom: 30px;
}

.alert-success {
    background: linear-gradient(45deg, #10B981, #059669);
    color: white;
}

.alert-danger {
    background: linear-gradient(45deg, var(--accent-red), #B91C1C);
    color: white;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: auto;
    border: 2px solid transparent;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-orange);
}

.service-header {
    padding: 30px 20px 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    background: white;
    border-radius: 15px 15px 0 0;
    transition: all 0.3s ease;
}

.service-header:hover {
    background: linear-gradient(45deg, var(--bg-light), white);
}

.service-header i.fa-2x {
    color: var(--primary-orange);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.service-header:hover i.fa-2x {
    color: var(--accent-red);
    transform: scale(1.1);
}

.service-header h5 {
    color: var(--dark-black);
    margin-bottom: 15px;
    font-family: 'Trebuchet MS', Arial, sans-serif; /* Change from Times New Roman to Trebuchet MS */
    font-weight: bold;
}

.toggle-icon {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-orange);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.service-header[aria-expanded="true"] .toggle-icon {
    transform: translateX(-50%) rotate(180deg);
    color: var(--accent-red);
}

.service-content {
    background: var(--bg-light);
    border-radius: 0 0 15px 15px;
}

/* Service Lists - Static version for better mobile compatibility */
.service-list {
    list-style: none;
    padding: 20px 25px;
    margin: 0;
}

.service-list li {
    padding: 10px 0;
    color: var(--text-dark);
    font-family: 'Trebuchet MS', Arial, sans-serif;
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
    position: relative;
    padding-left: 25px; /* Fixed padding for icon space */
    transition: color 0.3s ease; /* Only color transition */
    line-height: 1.5; /* Better line height for readability */
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li:before {
    content: '•'; /* Simple bullet instead of arrow */
    position: absolute;
    left: 8px; /* Fixed position */
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Adjust for true center */
    color: var(--primary-orange);
    font-size: 1.2rem; /* Larger, more visible */
    font-weight: bold;
    line-height: 1; /* Prevent line-height from affecting positioning */
}

.service-list li:hover {
    color: var(--accent-red);
    /* Remove padding changes that cause movement */
}

.service-list li:hover:before {
    color: var(--accent-red);
    /* Remove all transforms and scaling except centering */
    transform: translateY(-50%);
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    .service-list {
        padding: 15px 20px;
    }
    
    .service-list li {
        padding: 8px 0;
        padding-left: 25px; /* Consistent padding */
        font-size: 0.95rem;
    }
    
    .service-list li:before {
        left: 8px;
        top: 50%; /* Center vertically */
        transform: translateY(-50%); /* Maintain centering */
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .service-list {
        padding: 15px 15px;
    }
    
    .service-list li {
        padding: 6px 0;
        padding-left: 20px;
        font-size: 0.9rem;
    }
    
    .service-list li:before {
        left: 5px;
        top: 50%; /* Center vertically */
        transform: translateY(-50%); /* Maintain centering */
        font-size: 1rem;
    }
}

/* Remove all animation classes that might interfere */
.service-content.collapsing,
.service-content.show {
    /* Remove all animations */
    animation: none;
    transition: none;
}

/* Problem Section Image Extension */
#problem {
    position: relative;
    padding-bottom: 120px; /* Add extra padding to accommodate the extending image */
}

#problem .problem-icon {
    position: relative;
    z-index: 2;
}

#problem .problem-icon img {
    position: relative;
    transform: translateY(60px); /* Push the image down beyond the section */
    z-index: 3;
}

/* Ensure the next section has enough top padding to accommodate the overlapping image */
#solution {
    padding-top: 140px; /* Increase top padding to make room for the overlapping image */
    position: relative;
    z-index: 1;
}

/* Problem Section Image Overlap Effect - INCREASED */
.problem-overlap-image {
    transform: translateY(100px) !important; /* Increased from 50px to 100px */
    transition: transform 0.3s ease;
}

.problem-overlap-image:hover {
    transform: translateY(95px) scale(1.02) !important; /* Adjusted hover effect */
}

/* Ensure problem section accommodates the larger overlap */
#problem {
    margin-bottom: -100px !important; /* Increased negative margin */
}

/* Solution section responsive fixes */
#solution {
    padding-top: 180px !important; /* Increased top padding for larger overlap */
    position: relative;
    z-index: 1;
}

/* Medium screen fixes for text overlap */
@media (min-width: 768px) and (max-width: 1199px) {
    #solution .col-lg-4 {
        margin-bottom: 30px;
    }
    
    #solution .col-lg-8 {
        padding-left: 30px;
    }
    
    #solution .solution-icon img {
        max-width: 300px !important;
    }
    
    #solution .section-text {
        font-size: 1rem;
        line-height: 1.7;
    }
}

/* Tablet landscape specific fixes */
@media (min-width: 992px) and (max-width: 1199px) {
    #solution .container {
        max-width: 100%;
        padding-left: 30px;
        padding-right: 30px;
    }
    
    #solution .col-lg-4 {
        flex: 0 0 35%;
        max-width: 35%;
    }
    
    #solution .col-lg-8 {
        flex: 0 0 65%;
        max-width: 65%;
        padding-left: 40px;
    }
}

/* Mobile responsive adjustments for increased overlap */
@media (max-width: 768px) {
    .problem-overlap-image {
        transform: translateY(60px) !important; /* Reduced for mobile */
        max-width: 400px !important;
    }
    
    #problem {
        margin-bottom: -60px !important;
    }
    
    #solution {
        padding-top: 140px !important;
    }
}

@media (max-width: 576px) {
    .problem-overlap-image {
        transform: translateY(40px) !important;
        max-width: 300px !important;
    }
    
    #problem {
        margin-bottom: -40px !important;
    }
    
    #solution {
        padding-top: 120px !important;
    }
}

/* Solution section image styling - same as fon2 but no overlap */
.solution-icon img {
    max-width: 600px !important; /* Same as fon2 */
    position: relative;
    z-index: 3;
    /* Remove any transform that creates overlap */
    transform: none !important;
    transition: transform 0.3s ease; /* Add transition for hover effect */
}

/* Add hover effect for fon3 image - same as fon2 */
.solution-icon img:hover {
    transform: scale(1.02) !important; /* Same hover scale effect as fon2 */
}

/* Mobile responsive adjustments for solution image */
@media (max-width: 768px) {
    .solution-icon img {
        max-width: 400px !important; /* Same mobile sizing as fon2 */
    }
}

@media (max-width: 576px) {
    .solution-icon img {
        max-width: 300px !important; /* Same small mobile sizing as fon2 */
    }
}

/* Remove orange separator for specific sections */
.section-title-no-separator::after {
    display: none !important;
}

/* Mobile responsive adjustments for new layout */
@media (max-width: 991px) {
    #solution .col-lg-8,
    #solution .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    #solution .solution-icon {
        text-align: center;
        margin-bottom: 30px;
    }
    
    #solution .solution-icon img {
        max-width: 400px !important;
    }
}

@media (max-width: 576px) {
    #solution .solution-icon img {
        max-width: 300px !important;
    }
}

/* Solution section text positioning - move closer to image */
#solution .col-lg-4 {
    padding-left: 20px !important; /* Reduce left padding to move text closer to image */
}

/* Medium screen adjustments */
@media (min-width: 992px) and (max-width: 1199px) {
    #solution .col-lg-4 {
        padding-left: 15px !important;
    }
}

/* Mobile - reset to normal spacing */
@media (max-width: 991px) {
    #solution .col-lg-4 {
        padding-left: 15px !important; /* Bootstrap default */
        margin-top: 20px; /* Add top margin when stacked */
    }
}