/* 
* Foxtech Digital - Main Stylesheet
* A mobile-first design with clean animations
*/

/* ===== Base Styles ===== */
:root {
    /* Color Variables */
    --primary-color: #0047AB; /* Foxtech Blue */
    --primary-light: #2563EB; /* Lighter Blue for gradients */
    --secondary-color: #F9FAFB; /* Light Gray with slight blue tint */
    --accent-color: #FF6A00; /* Foxtech Orange */
    --accent-light: #FF8C38; /* Lighter Orange for hover states */
    --text-color: #111827; /* Dark gray for better readability */
    --light-text: #ffffff;
    --dark-text: #111827;
    --border-color: #E5E7EB;
    --card-bg: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Roboto', sans-serif;
    
    /* Spacing */
    --section-spacing: 6rem; /* Increased for more breathing room */
    --section-spacing-mobile: 4rem; /* Smaller spacing for mobile */
    --element-spacing: 2rem; /* Increased from 1.5rem */
    --card-padding: 2rem;
    --card-padding-mobile: 1.5rem;
    --container-padding: 1.5rem;
    --container-padding-mobile: 1rem;
}

@media (max-width: 767px) {
    :root {
        --card-padding: var(--card-padding-mobile);
        --container-padding: var(--container-padding-mobile);
    }
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    font-style: italic;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--heading-font);
}

.rescue-block .btn-primary {
    background-color: var(--accent-color);
    color: var(--light-text);
}

.rescue-block .btn-primary:hover {
    background-color: var(--accent-light);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--light-text);
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--accent-light);
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 106, 0, 0.2);
}

.btn-secondary {
    background-color: var(--light-text);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-weight: 500;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 71, 171, 0.1);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 1rem 0;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-link {
    color: var(--dark-text);
    font-weight: 500;
    font-family: var(--heading-font);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.contact-btn {
    padding: 0.5rem 1.2rem;
    background-color: var(--accent-color);
    color: var(--light-text);
    border-radius: 20px;
    font-weight: 500;
}

.contact-btn:hover {
    background-color: var(--accent-light);
    color: var(--light-text);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-text);
    transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--light-text);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 80vh;
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 60px; /* Increased top padding for more space after navbar */
        min-height: auto;
    }
}

.hero .container {
    padding-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 700px;
    margin-bottom: 2rem;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

.hero h1 {
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hero p {
        font-size: 1.25rem;
    }
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
}

.cta-buttons .btn {
    min-width: 180px;
    padding: 0.7rem 1.4rem;
    font-size: 1rem;
}

.hero-animation {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.animation-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

lottie-player {
    width: 100%;
    height: 300px;
}

.gif-container {
    margin-top: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.process-gif {
    max-width: 500px;
    height: auto;
    transition: all 0.3s ease;
}

.hero .process-gif {
    width: 500px;
}

.process-gif:hover {
    transform: scale(1.05);
}

.gif-caption {
    margin-top: 0.5rem;
    font-weight: 500;
    color: var(--light-text);
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

/* ===== About Section ===== */
.about {
    padding: var(--section-spacing-mobile) 0;
    background-color: var(--card-bg);
}

@media (min-width: 768px) {
    .about {
        padding: var(--section-spacing) 0;
    }
}

.about-content {
    margin: -10px;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-content p[style*="italic"] {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin: 1.5rem 0;
    font-weight: 500;
}

.founder-quote {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 10px;
    background-color: var(--secondary-color);
}

.quote-image {
    margin-bottom: 1rem;
}

.quote-image-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 auto;
}

blockquote {
    font-style: italic;
    color: var(--dark-text);
    font-weight: 500;
}

/* ===== Strategy Section ===== */
.strategy {
    padding: var(--section-spacing) 0;
    background-color: var(--primary-color);
    color: var(--light-text);
}

.strategy-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.strategy-text {
    flex: 1;
}

.strategy-text h2 {
    margin-bottom: 1rem;
}

.strategy-text p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.strategy-image {
    flex: 1;
    text-align: center;
}

.strategy-points {
    margin-top: 1.5rem;
}

.strategy-points li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.strategy-points i {
    color: var(--primary-color);
    font-style: italic;
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

/* ===== Rescue Block Section ===== */
.rescue-block {
    position: relative;
    overflow: hidden;
    padding: var(--section-spacing-mobile) 0;
    background-color: var(--card-bg);
}

@media (min-width: 768px) {
    .rescue-block {
        padding: var(--section-spacing) 0;
    }
}

.diagonal-bg {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 3rem 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 71, 171, 0.15);
}

.rescue-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    padding: 1rem;
    color: var(--light-text);
}

@media (min-width: 768px) {
    .rescue-content {
        flex-direction: row;
        padding: 1.5rem;
    }
}

.rescue-text {
    flex: 1;
    text-align: center;
}

@media (min-width: 768px) {
    .rescue-text {
        text-align: left;
    }
}

.rescue-text h2 {
    color: var(--light-text);
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .rescue-text h2 {
        font-size: 2.2rem;
    }
}

.rescue-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.rescue-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
}

.rescue-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.quote-image {
    margin-bottom: 1rem;
}

.quote-image-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 auto;
}

blockquote {
    font-style: italic;
    color: var(--dark-text);
    font-weight: 500;
}

/* ===== Services Section ===== */
.services {
    padding: var(--section-spacing-mobile) 0;
    background-color: var(--secondary-color);
}

@media (min-width: 768px) {
    .services {
        padding: var(--section-spacing) 0;
    }
}

.services-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3.5rem;
    gap: 2rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services-intro p {
    font-size: 1.1rem;
    line-height: 1.7;
}

.services-text {
    max-width: 800px;
}

.services-image {
    max-width: 500px;
    margin: 0 auto;
}

.services-accordion {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.service-item {
    background-color: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 30px var(--shadow-color);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.service-item:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.service-header {
    display: flex;
    align-items: center;
    padding: 1.75rem;
    cursor: pointer;
    position: relative;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .service-header {
        flex-direction: column;
        text-align: center;
    }
}

.service-header:hover {
    background-color: rgba(0, 71, 171, 0.05);
}

.service-icon {
    font-size: 1.8rem;
    color: var(--accent-color);
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 106, 0, 0.1);
    border-radius: 50%;
    margin-right: 1.25rem;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .service-icon {
        font-size: 2rem;
        margin-right: 1.5rem;
    }
}

@media (max-width: 768px) {
    .service-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

.service-title {
    flex: 1;
}

@media (max-width: 768px) {
    .service-title {
        width: 100%;
        margin-bottom: 1rem;
    }
}

.service-title h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    .service-title h3 {
        font-size: 1.4rem;
    }
}

.service-title p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0;
}

.toggle-btn {
    min-width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .toggle-btn {
        margin-left: 0;
    }
}

.service-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.service-details {
    padding: 1rem 1.75rem 2rem;
    text-align: center;
}

.service-details p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-cta {
    margin-top: 2rem;
    text-align: center;
    font-style: italic;
    color: var(--primary-color);
    font-weight: 500;
}

.service-item.active .service-header {
    background-color: var(--primary-color);
}

.service-item.active .service-icon {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--light-text);
}

.service-item.active .service-title h3,
.service-item.active .service-title p {
    color: var(--light-text);
}

.service-item.active .toggle-btn {
    background-color: var(--accent-color);
    transform: rotate(180deg);
}

.service-item.active .service-content {
    max-height: 2000px;
}

/* ===== Why Foxtech Works Section ===== */
.why-works {
    padding: var(--section-spacing-mobile) 0;
    background-color: var(--card-bg);
}

@media (min-width: 768px) {
    .why-works {
        padding: var(--section-spacing) 0;
    }
}

.work-block {
    display: flex;
    flex-direction: column;
    margin-bottom: 4rem;
    padding: var(--card-padding);
    border-radius: 16px;
    background-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.work-block:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.work-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.work-image img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.work-content {
    flex: 1;
}

@media (max-width: 768px) {
    .work-content {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

.work-title {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    font-weight: 600;
}

@media (min-width: 768px) {
    .work-title {
        font-size: 1.8rem;
    }
}

.work-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

.work-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    color: var(--primary-color);
    font-style: italic;
    line-height: 1.5;
}

.work-block:nth-child(odd) .work-title::after {
    background-color: var(--accent-color);
}

.work-block:nth-child(even) .work-title::after {
    background-color: var(--primary-color);
}

/* Mobile: Always show image first, then text */
.work-block.reverse {
    display: flex;
    flex-direction: column;
}

/* Force image to be first in mobile view for reversed blocks */
.work-block.reverse .work-image {
    order: -1;
}

@media (min-width: 768px) {
    .work-block {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
        padding: 0;
    }
    
    .work-block:nth-child(even) {
        flex-direction: row-reverse;
    }
    
    .work-block:nth-child(odd) {
        flex-direction: row;
    }
    
    /* Reset the order for desktop view */
    .work-block.reverse .work-image {
        order: 0;
    }
    
    .work-image {
        margin-bottom: 0;
        flex: 0 0 45%;
    }
    
    .work-content {
        flex: 1;
    }
}

/* ===== Testimonials Section ===== */
.testimonials {
    padding: var(--section-spacing-mobile) 0;
    background-color: var(--card-bg);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .testimonials {
        padding: var(--section-spacing) 0;
    }
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 0;
}

.testimonial-track {
    display: flex;
    animation: slideTestimonials 30s linear infinite;
}

@keyframes slideTestimonials {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-200%);
    }
}

.testimonial-item {
    flex: 0 0 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.testimonial-content {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 16px;
    padding: var(--card-padding);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 71, 171, 0.15);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

@media (max-width: 767px) {
    .testimonial-content {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

.testimonial-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 71, 171, 0.2);
}

.testimonial-content blockquote {
    margin: 0 0 1.5rem 0;
    position: relative;
    z-index: 1;
}

.testimonial-content blockquote p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--light-text);
    line-height: 1.6;
    margin: 0;
    position: relative;
    padding-left: 1.5rem;
}

@media (max-width: 767px) {
    .testimonial-content blockquote p {
        font-size: 1rem;
        padding-left: 1.25rem;
    }
}

.testimonial-content blockquote p::before {
    content: '\201C';
    font-size: 3rem;
    font-family: Georgia, serif;
    color: rgba(255, 255, 255, 0.3);
    position: absolute;
    top: -1rem;
    left: -0.5rem;
}

.testimonial-author {
    position: relative;
    z-index: 1;
}

.author-name {
    font-weight: 600;
    color: var(--light-text);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

@media (max-width: 767px) {
    .author-name {
        font-size: 1rem;
    }
}

.author-position {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 767px) {
    .author-position {
        font-size: 0.85rem;
    }
}

.why-choose-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefits-list {
    margin-bottom: 3rem;
    width: 100%;
}

.benefits-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
}

.benefits-list li:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.benefit-icon {
    min-width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--light-text);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.benefit-text {
    font-weight: 500;
}

.nav-menu .contact-btn {
    background-color: var(--accent-color);
    color: var(--light-text);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    margin-left: 1.5rem;
}

.language-selector .nav-link {
    padding: 0.3rem 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.language-selector .nav-link.active {
    opacity: 1;
    font-weight: 600;
    color: var(--primary-color);
}

.language-selector .lang-divider {
    margin: 0 0.2rem;
    color: var(--border-color);
    font-weight: 300;
}

@media (max-width: 767px) {
    .language-selector {
        margin: 1rem 0 0 0;
        justify-content: center;
    }
}

.experience-badge {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-family: var(--heading-font);
    text-align: center;
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.2);
}

/* ===== Why Foxtech Works Section ===== */
.why-works {
    padding: var(--section-spacing-mobile) 0;
    background-color: var(--card-bg);
}

@media (min-width: 768px) {
    .why-works {
        padding: var(--section-spacing) 0;
    }
}

.work-block {
    display: flex;
    flex-direction: column;
    margin-bottom: 4rem;
    padding: 0;
    border-radius: 16px;
    background-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.work-block:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.work-block:last-child {
    margin-bottom: 0;
}

.work-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.work-image img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.work-content {
    flex: 1;
    padding: 0 1rem;
}

.work-title {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    font-weight: 600;
}

@media (min-width: 768px) {
    .work-title {
        font-size: 1.8rem;
    }
}

.work-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

.work-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    color: var(--primary-color);
    font-style: italic;
    line-height: 1.5;
}

.work-block:nth-child(odd) .work-title::after {
    background-color: var(--accent-color);
}

.work-block:nth-child(even) .work-title::after {
    background-color: var(--primary-color);
}

.work-block:nth-child(odd) .work-subtitle {
    color: var(--primary-color);
    font-style: italic;
}

.work-block:nth-child(even) .work-subtitle {
    color: var(--primary-color);
}

/* ===== Rescue Block Section ===== */
.rescue-block {
    padding: 0;
    position: relative;
    overflow: hidden;
}

.diagonal-bg {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: var(--section-spacing) 0;
    z-index: 1;
    border-radius: 0 0 50px 50px;
    margin-bottom: 30px;
}

.diagonal-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(0, 71, 171, 0.8) 100%);
    z-index: -1;
}

.rescue-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    color: var(--light-text);
}

.rescue-text {
    flex: 1;
    z-index: 2;
}

.rescue-text h2 {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.rescue-text p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.rescue-image {
    flex: 1;
    text-align: center;
    z-index: 2;
}

/* ===== Contact Section ===== */
.contact {
    padding: var(--section-spacing-mobile) 0;
    background-color: var(--secondary-color);
}

@media (min-width: 768px) {
    .contact {
        padding: var(--section-spacing) 0;
    }
}

.contact-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
    gap: 2rem;
}

.contact-title {
    flex: 1;
    text-align: center;
}

.contact-gif {
    flex: 1;
    text-align: center;
    max-width: 300px;
    margin: 0 auto;
}

.contact-intro-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
    gap: 2rem;
    position: relative;
}

.contact-message {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    position: relative;
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 71, 171, 0.15);
    text-align: center;
    margin-bottom: 2rem;
}

@media (max-width: 767px) {
    .contact-message {
        padding: 2rem 1.5rem;
    }
}



.contact-intro {
    text-align: center;
    max-width: 700px;
    margin: 0;
    color: var(--light-text);
    position: relative;
    z-index: 1;
}

.contact-process-gif {
    max-width: 400px;
    margin: 0 auto;
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
    padding-top: 2rem;
}

@media (max-width: 767px) {
    .contact-container {
        padding-top: 1.5rem;
    }
}

.contact-form {
    background-color: var(--card-bg);
    padding: var(--card-padding);
    border-radius: 16px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.form-message {
    max-width: 600px;
    margin: 1rem auto;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    animation: fadeIn 0.5s ease-in-out;
}

.form-message.success {
    background-color: rgba(72, 187, 120, 0.1);
    color: #2f855a;
    border: 1px solid rgba(72, 187, 120, 0.3);
}

.form-message.error {
    background-color: rgba(245, 101, 101, 0.1);
    color: #c53030;
    border: 1px solid rgba(245, 101, 101, 0.3);
}

.form-message.fade-out {
    animation: fadeOut 0.5s ease-in-out forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@media (max-width: 767px) {
    .contact-form {
        padding: 1.5rem;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--body-font);
    transition: all 0.3s ease;
    font-size: 1rem;
}

@media (max-width: 767px) {
    .form-group input,
    .form-group textarea {
        padding: 0.9rem;
    }
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

.contact-form button {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Form Message Styles */
.form-message {
    padding: 1rem;
    margin-top: 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    animation: fadeIn 0.5s ease;
}

.form-message.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid #10b981;
}

.form-message.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.form-message.fade-out {
    animation: fadeOut 0.5s ease;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ===== Footer ===== */
footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: center;
    }
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.footer-links a {
    color: var(--light-text);
    opacity: 0.8;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-align: center;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.footer-social a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 106, 0, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===== Testimonials Section ===== */
.testimonials {
    padding: var(--section-spacing-mobile) 0;
    background-color: var(--secondary-color);
}

@media (min-width: 768px) {
    .testimonials {
        padding: var(--section-spacing) 0;
    }
}

.testimonials-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-item {
    flex: 0 0 100%;
    padding: 0 1rem;
    box-sizing: border-box;
    display: none;
}

.testimonial-item.active {
    display: block;
}

.testimonial-content {
    background-color: #ffffff;
    border-radius: 16px;
    padding: var(--card-padding);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .testimonial-content {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }
}

.testimonial-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--secondary-color);
}

@media (min-width: 768px) {
    .testimonial-image {
        margin: 0;
        flex-shrink: 0;
    }
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-text {
    flex: 1;
}

.testimonial-stars {
    display: flex;
    margin-bottom: 1rem;
    color: #FFD700;
}

.testimonial-stars i {
    margin-right: 0.25rem;
}

.testimonial-content blockquote {
    margin: 0 0 1.5rem 0;
    position: relative;
}

.testimonial-content blockquote p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--dark-text);
    line-height: 1.6;
    margin: 0;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

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

.testimonial-nav {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 1rem;
}

.testimonial-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.testimonial-nav-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* ===== Animations ===== */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.fade-in-delay-1 {
    animation: fadeIn 1s ease-in-out 0.3s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-in-out 0.6s forwards;
    opacity: 0;
}

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

/* Hover animations for interactive elements */
.service-item, .work-block, .btn, .nav-link, .testimonial-content, .contact-form {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-item:hover, .work-block:hover, .testimonial-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Smooth page scrolling */
html {
    scroll-behavior: smooth;
}

/* ===== Media Queries ===== */
@media (min-width: 576px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    h3 {
        font-size: 1.8rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .founder-quote {
        flex-direction: row;
        text-align: left;
    }
    
    .quote-image {
        margin-right: 1.5rem;
        margin-bottom: 0;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

@media (min-width: 768px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .work-block {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }
    
    .work-block.reverse {
        flex-direction: row-reverse;
    }
    
    .work-image {
        margin-bottom: 0;
        flex: 0 0 45%;
    }
    
    .work-content {
        flex: 1;
    }
}

@media (min-width: 992px) {
    .hero .container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .hero-content {
        text-align: left;
        margin-bottom: 0;
        margin-right: 2rem;
    }
    
    .cta-buttons {
        justify-content: flex-start;
    }
    
    .services-intro {
        flex-direction: row;
        text-align: left;
        align-items: center;
    }
    
    .services-accordion {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .service-header {
        padding: 2rem;
    }
    
    .service-details {
        padding: 1rem 2rem 2.5rem;
    }
    
    .strategy-content {
        flex-direction: row;
        align-items: center;
    }
    
    .work-image {
        flex: 0 0 40%;
    }
    
    .rescue-content {
        flex-direction: row;
        align-items: center;
    }
    
    .contact-form {
        padding: 2.5rem;
    }
}

@media (max-width: 991px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--light-text);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        z-index: 1000;
        height: calc(100vh - 70px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1.5rem 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        display: inline-block;
        padding: 0.5rem 1rem;
    }
    
    .contact-btn {
        margin-top: 1rem;
        padding: 0.7rem 1.5rem;
        display: inline-block;
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
