/* ==========================================================================
   CoolWood - Main Stylesheet
   ========================================================================== */

/* CSS Custom Properties
   ========================================================================== */
:root {
    /* Colors */
    --cw-primary: #0b5d3b;
    --cw-primary-dark: #084e31;
    --cw-primary-light: #0f7349;
    --cw-secondary: #b0845a;
    --cw-accent: #d4af37;
    --cw-dark: #0f172a;
    --cw-light: #f8fafc;
    --cw-gray-100: #f1f5f9;
    --cw-gray-200: #e2e8f0;
    --cw-gray-300: #cbd5e1;
    --cw-gray-400: #94a3b8;
    --cw-gray-500: #64748b;
    --cw-gray-600: #475569;
    --cw-gray-700: #334155;
    --cw-gray-800: #1e293b;
    --cw-gray-900: #0f172a;

    /* Typography */
    --font-primary: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;

    /* Spacing */
    --section-padding: 80px;
    --container-padding: 20px;

    /* Shadows */
    --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);
    --shadow-soft: 0 10px 30px rgba(2, 8, 23, 0.06);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;

    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
}

/* Base Styles
   ========================================================================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--cw-gray-700);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--cw-dark);
}

.text-accent {
    color: var(--cw-secondary);
}

/* Layout
   ========================================================================== */
.section {
    padding: var(--section-padding) 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--cw-primary), var(--cw-primary-light));
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--cw-gray-600);
    max-width: 600px;
}

/* Navigation
   ========================================================================== */
.navbar {
    padding: 1rem 0;
    transition: all var(--transition-base);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.navbar.navbar-scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--cw-dark);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo {
    height: 34px;
    width: auto;
}

.brand-text {
    font-family: var(--font-display);
}

.nav-link {
    font-weight: 600;
    color: var(--cw-gray-700);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
}

.nav-link:hover {
    color: var(--cw-primary);
}

.nav-link.active {
    color: var(--cw-primary);
    background: rgba(11, 93, 59, 0.1);
}

.navbar-actions {
    gap: 1rem;
}

/* Buttons
   ========================================================================== */
.btn {
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cw-primary), var(--cw-primary-light));
    border: 2px solid var(--cw-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--cw-primary-dark), var(--cw-primary));
    border-color: var(--cw-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

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

.btn-outline-primary:hover {
    background: var(--cw-primary);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(11, 93, 59, 0.9), 
        rgba(15, 23, 42, 0.8)
    ),
    url('https://images.unsplash.com/photo-1519710164239-da123dc03ef4?q=80&w=1800&auto=format&fit=crop') center/cover no-repeat;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
                      radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-highlight {
    color: var(--cw-accent);
    display: block;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 600px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    opacity: 0.8;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.hero-image {
    position: relative;
    height: 500px;
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: floatElement 6s ease-in-out infinite;
}

.element-1 {
    top: 10%;
    right: 20%;
    animation-delay: 0s;
}

.element-2 {
    top: 50%;
    right: 10%;
    animation-delay: 2s;
}

.element-3 {
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
}

@keyframes floatElement {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(5deg); }
    66% { transform: translateY(10px) rotate(-3deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: bounce 2s infinite;
    transition: all var(--transition-base);
}

.scroll-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

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

/* Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-slow);
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 93, 59, 0.8);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-slow);
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--cw-primary);
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--cw-dark);
}

.service-content p {
    margin-bottom: 1.5rem;
    color: var(--cw-gray-600);
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    padding: 0.25rem 0;
    color: var(--cw-gray-600);
    font-size: 0.875rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--cw-primary);
    font-weight: bold;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 4rem 0;
    border-top: 1px solid var(--cw-gray-200);
}

.image-composition {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-xl);
}

.image-overlay {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--cw-primary);
    line-height: 1;
}

.stat-text {
    font-size: 0.875rem;
    color: var(--cw-gray-600);
    font-weight: 600;
}

.benefits-list {
    margin: 2rem 0;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--cw-gray-100);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.benefit-item:hover {
    background: rgba(11, 93, 59, 0.05);
}

.benefit-item i {
    color: var(--cw-primary);
    font-size: 1.25rem;
    margin-top: 0.125rem;
}

/* Projects Section
   ========================================================================== */
.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--cw-gray-300);
    color: var(--cw-gray-600);
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--cw-primary);
    border-color: var(--cw-primary);
    color: white;
    transform: translateY(-2px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-item {
    transition: all var(--transition-slow);
}

.project-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.project-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-slow);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 93, 59, 0.9), rgba(15, 23, 42, 0.8));
    opacity: 0;
    display: flex;
    align-items: end;
    padding: 2rem;
    transition: all var(--transition-slow);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    color: white;
}

.project-info h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.project-info p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.project-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Process Section
   ========================================================================== */
.process-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 4rem;
}

.process-step {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    gap: 2rem;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--cw-primary), var(--cw-primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    position: relative;
}

.step-number::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100px;
    background: var(--cw-gray-300);
    z-index: -1;
}

.process-step:last-child .step-number::before {
    display: none;
}

.step-content {
    flex: 1;
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    position: relative;
}

.step-icon {
    width: 50px;
    height: 50px;
    background: rgba(11, 93, 59, 0.1);
    color: var(--cw-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.step-content h4 {
    margin-bottom: 1rem;
    color: var(--cw-dark);
}

.step-content p {
    margin-bottom: 1.5rem;
    color: var(--cw-gray-600);
}

.step-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-details li {
    padding: 0.5rem 0;
    color: var(--cw-gray-600);
    font-size: 0.875rem;
    position: relative;
    padding-left: 1.5rem;
}

.step-details li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--cw-primary);
    font-weight: bold;
}

.process-stats {
    background: var(--cw-light);
    padding: 3rem 2rem;
    border-radius: var(--radius-xl);
    margin-top: 4rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--cw-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--cw-gray-600);
    font-weight: 600;
}

/* About Section
   ========================================================================== */
.about-content {
    padding-right: 2rem;
}

.about-stats {
    margin: 2rem 0;
}

.about-stat {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(11, 93, 59, 0.1);
    color: var(--cw-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--cw-dark);
}

.stat-content span {
    font-size: 0.875rem;
    color: var(--cw-gray-600);
}

.team-values {
    margin-top: 2rem;
}

.team-values h4 {
    margin-bottom: 1rem;
}

.value-items {
    display: grid;
    gap: 0.75rem;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(11, 93, 59, 0.05);
    border-radius: var(--radius-lg);
}

.value-item i {
    color: var(--cw-primary);
    font-size: 1.125rem;
}

/* Testimonials */
.testimonials-section {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.testimonial-slider {
    position: relative;
    min-height: 200px;
    margin-bottom: 1.5rem;
}

.testimonial-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: all var(--transition-slow);
}

.testimonial-item.active {
    opacity: 1;
}

.stars {
    margin-bottom: 1rem;
    color: var(--cw-accent);
}

.testimonial-content blockquote {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--cw-gray-700);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info strong {
    display: block;
    color: var(--cw-dark);
    font-weight: 600;
}

.author-info span {
    font-size: 0.875rem;
    color: var(--cw-gray-600);
}

.testimonial-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--cw-gray-300);
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

.nav-btn:hover {
    background: var(--cw-primary);
    color: white;
    border-color: var(--cw-primary);
}

.nav-indicators {
    display: flex;
    gap: 0.5rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cw-gray-300);
    cursor: pointer;
    transition: all var(--transition-base);
}

.indicator.active {
    background: var(--cw-primary);
}

/* Contact Section
   ========================================================================== */
.contact-form-container {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    margin-bottom: 3rem;
}

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

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--cw-dark);
}

.required {
    color: #dc3545;
}

.form-control,
.form-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--cw-gray-300);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    background: var(--cw-light);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--cw-primary);
    box-shadow: 0 0 0 0.2rem rgba(11, 93, 59, 0.25);
    outline: none;
    background: white;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: #28a745;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-check {
    margin-bottom: 2rem;
}

.form-check-input:checked {
    background-color: var(--cw-primary);
    border-color: var(--cw-primary);
}

.btn-loading .btn-text {
    display: none;
}

.btn-loading .btn-loading {
    display: flex !important;
}

.contact-info {
    margin-top: 4rem;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    height: 100%;
    transition: all var(--transition-base);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(11, 93, 59, 0.1);
    color: var(--cw-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-content h5 {
    margin-bottom: 0.5rem;
    color: var(--cw-dark);
}

.contact-link {
    color: var(--cw-primary);
    text-decoration: none;
    font-weight: 600;
}

.contact-link:hover {
    text-decoration: underline;
}

/* Footer
   ========================================================================== */
.footer {
    background: var(--cw-gray-900);
    color: var(--cw-gray-300);
    padding: 4rem 0 2rem;
}

.footer-content {
    margin-bottom: 3rem;
}

.footer-brand {
    margin-bottom: 2rem;
}

.footer-brand .brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand .brand-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.footer-brand p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--cw-gray-800);
    color: var(--cw-gray-400);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--cw-primary);
    color: white;
    transform: translateY(-2px);
}

.footer-links h5 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: var(--cw-gray-400);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-links ul li a:hover {
    color: var(--cw-primary);
}

.footer-newsletter h5 {
    color: white;
    margin-bottom: 1rem;
}

.newsletter-form {
    margin-top: 1rem;
}

.newsletter-form .input-group {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.newsletter-form .form-control {
    border: none;
    background: var(--cw-gray-800);
    color: white;
    border-radius: 0;
}

.newsletter-form .form-control:focus {
    background: var(--cw-gray-700);
    box-shadow: none;
}

.newsletter-form .btn {
    border-radius: 0;
    border: none;
}

.footer-bottom {
    border-top: 1px solid var(--cw-gray-800);
    padding-top: 2rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--cw-gray-400);
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-legal a:hover {
    color: var(--cw-primary);
}

/* Floating Elements
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #25d366;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    background: #128c7e;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.whatsapp-text {
    font-size: 0.875rem;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: var(--cw-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--cw-primary-dark);
    transform: translateY(-2px);
}

/* Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        flex-direction: column !important;
        text-align: center;
    }

    .step-number::before {
        display: none;
    }

    .about-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .contact-form-container {
        padding: 2rem;
    }

    .floating-whatsapp {
        bottom: 1rem;
        right: 1rem;
    }

    .whatsapp-text {
        display: none;
    }

    .whatsapp-btn {
        width: 60px;
        height: 60px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }

    .back-to-top {
        bottom: 5rem;
        left: 1rem;
    }

    .footer-legal {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .projects-filter {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 200px;
    }
}

/* Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Utility Classes
   ========================================================================== */
.bg-light {
    background-color: var(--cw-light) !important;
}

.text-center {
    text-align: center !important;
}

.d-none {
    display: none !important;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-center {
    justify-content: center !important;
}

.gap-1 {
    gap: 0.25rem !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

.gap-4 {
    gap: 1.5rem !important;
}

.gap-5 {
    gap: 3rem !important;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

/* Print Styles
   ========================================================================== */
@media print {
    .navbar,
    .floating-whatsapp,
    .back-to-top,
    .scroll-indicator {
        display: none !important;
    }

    .section {
        padding: 2rem 0;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }

    .project-card,
    .service-card {
        page-break-inside: avoid;
    }
}