@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');
@import url('https://cdn.jsdelivr.net/npm/remixicon@2.5.0/fonts/remixicon.css');

:root {
    --primary: #D84315;
    --primary-dark: #BF360C;
    --primary-light: #FF5722;
    --secondary: #37474F;
    --secondary-dark: #263238;
    --secondary-light: #546E7A;
    --accent: #FFA726;
    --accent-dark: #F57C00;
    --neutral-50: #FAFAFA;
    --neutral-100: #F5F5F5;
    --neutral-200: #EEEEEE;
    --neutral-300: #E0E0E0;
    --neutral-700: #616161;
    --neutral-800: #424242;
    --neutral-900: #212121;
    --text-dark: #1A1A1A;
    --text-light: #FFFFFF;
    --success: #43A047;
    --warning: #FFA726;
    --danger: #E53935;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 10px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: var(--neutral-100);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

header {
    background: var(--secondary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.logo-text {
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav a {
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.3px;
}

nav a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:not(.btn-primary):hover::after,
nav a:not(.btn-primary).active::after {
    width: 100%;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

.mobile-menu {
    background: var(--secondary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mobile-menu a {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background: var(--secondary-dark);
    border-left-color: var(--primary);
    padding-left: 1.25rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-light);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(216, 67, 21, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(216, 67, 21, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--text-light);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(55, 71, 79, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(216, 67, 21, 0.3);
}

.hero-section {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
    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 width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid var(--neutral-200);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.25rem;
    box-shadow: 0 6px 20px rgba(216, 67, 21, 0.3);
    transition: all 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card {
    position: relative;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}

.project-card img {
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.15);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
}

.testimonial-card:hover {
    transform: translateX(8px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 80px;
    color: var(--primary);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.stats-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    color: white;
    box-shadow: 0 8px 30px rgba(216, 67, 21, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    transition: all 0.5s ease;
}

.stats-card:hover::before {
    top: -60%;
    right: -60%;
}

.stats-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 50px rgba(216, 67, 21, 0.4);
}

.feature-box {
    background: var(--neutral-50);
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid var(--neutral-200);
    transition: all 0.3s ease;
}

.feature-box:hover {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.team-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.team-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.team-card-image {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.team-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--secondary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .team-card-image::after {
    opacity: 1;
}

.accordion-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid var(--neutral-200);
}

.accordion-header {
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: var(--secondary-dark);
    background: var(--neutral-50);
}

.accordion-header:hover {
    background: var(--neutral-100);
    color: var(--primary);
}

.accordion-header.active {
    background: var(--primary);
    color: white;
}

.accordion-header i {
    transition: transform 0.3s ease;
    font-size: 1.25rem;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-content.active {
    padding: 1.5rem;
    max-height: 1000px;
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-dark);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--neutral-300);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--neutral-50);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(216, 67, 21, 0.1);
}

.form-control::placeholder {
    color: var(--neutral-700);
    opacity: 0.6;
}

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

.form-select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--neutral-300);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--neutral-50);
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(216, 67, 21, 0.1);
}

.form-checkbox {
    display: flex;
    align-items: center;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: var(--primary);
}

.contact-info-card {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
    color: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.contact-info-item {
    display: flex;
    align-items: start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.contact-info-item i {
    font-size: 1.75rem;
    color: var(--accent);
    margin-right: 1.25rem;
    min-width: 40px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 8px 20px rgba(216, 67, 21, 0.3);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: var(--primary);
    color: white;
}

.badge-secondary {
    background: var(--secondary);
    color: white;
}

.badge-accent {
    background: var(--accent);
    color: var(--secondary-dark);
}

.badge-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

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

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.divider {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
    border: none;
    margin: 3rem 0;
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    transition: all 0.3s ease;
}

.icon-box-primary {
    background: rgba(216, 67, 21, 0.1);
    color: var(--primary);
}

.icon-box-secondary {
    background: rgba(55, 71, 79, 0.1);
    color: var(--secondary);
}

.icon-box-accent {
    background: rgba(255, 167, 38, 0.1);
    color: var(--accent);
}

.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.overlay-dark {
    background: rgba(0, 0, 0, 0.7);
}

.overlay-light {
    background: rgba(255, 255, 255, 0.9);
}

.overlay-gradient {
    background: linear-gradient(135deg, rgba(216, 67, 21, 0.9), rgba(55, 71, 79, 0.9));
}

.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3.5rem;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 4px solid white;
    box-shadow: 0 0 0 4px var(--primary);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--neutral-200);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    transition: width 1s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--neutral-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.fade-in {
    animation: fadeIn 0.6s ease;
}

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

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

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

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

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

.scale-in {
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--secondary-dark);
    color: var(--text-light);
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner h3 {
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cookie-banner p {
    color: var(--neutral-300);
    margin-bottom: 1rem;
}

.cookie-banner a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-banner a:hover {
    color: var(--accent-dark);
}

.cookie-banner button {
    margin-right: 0.75rem;
}

footer {
    background: var(--secondary-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

footer h3, footer h4 {
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 1.25rem;
}

footer a {
    color: var(--neutral-300);
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem 0;
}

footer a:hover {
    color: var(--primary-light);
    padding-left: 0.5rem;
}

footer .social-link {
    display: inline-flex;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--neutral-700);
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb i {
    color: var(--neutral-700);
    font-size: 0.75rem;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-success {
    background: rgba(67, 160, 71, 0.1);
    border-left: 4px solid var(--success);
    color: var(--success);
}

.alert-warning {
    background: rgba(255, 167, 38, 0.1);
    border-left: 4px solid var(--warning);
    color: var(--accent-dark);
}

.alert-danger {
    background: rgba(229, 57, 53, 0.1);
    border-left: 4px solid var(--danger);
    color: var(--danger);
}

.page-header {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
    padding: 5rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--neutral-300);
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .timeline {
        padding-left: 2rem;
    }
    
    .timeline-item::before {
        left: -2.4rem;
    }
    
    .stats-card {
        padding: 1.5rem;
    }
    
    .contact-info-item {
        padding: 1rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

@media (max-width: 640px) {
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
    
    footer {
        padding: 3rem 0 1.5rem;
    }
}